本文整理匯總了C#中OTFontFile.MBOBuffer.SetLong方法的典型用法代碼示例。如果您正苦於以下問題:C# MBOBuffer.SetLong方法的具體用法?C# MBOBuffer.SetLong怎麽用?C# MBOBuffer.SetLong使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類OTFontFile.MBOBuffer
的用法示例。
在下文中一共展示了MBOBuffer.SetLong方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: GenerateTable
// generate a new table from the cached data
public override OTTable GenerateTable()
{
// create a Motorola Byte Order buffer for the new table
MBOBuffer newbuf = new MBOBuffer(54);
// populate the buffer
newbuf.SetFixed (m_TableVersion, (uint)Table_head.FieldOffsets.TableVersionNumber);
newbuf.SetFixed (m_fontRevision, (uint)Table_head.FieldOffsets.fontRevision);
newbuf.SetUint (m_checkSumAdjustment, (uint)Table_head.FieldOffsets.checkSumAdjustment);
newbuf.SetUint (m_magicNumber, (uint)Table_head.FieldOffsets.magicNumber);
newbuf.SetUshort(m_flags, (uint)Table_head.FieldOffsets.flags);
newbuf.SetUshort(m_unitsPerEm, (uint)Table_head.FieldOffsets.unitsPerEm);
newbuf.SetLong (m_created, (uint)Table_head.FieldOffsets.created);
newbuf.SetLong (m_modified, (uint)Table_head.FieldOffsets.modified);
newbuf.SetShort (m_xMin, (uint)Table_head.FieldOffsets.xMin);
newbuf.SetShort (m_yMin, (uint)Table_head.FieldOffsets.yMin);
newbuf.SetShort (m_xMax, (uint)Table_head.FieldOffsets.xMax);
newbuf.SetShort (m_yMax, (uint)Table_head.FieldOffsets.yMax);
newbuf.SetUshort(m_macStyle, (uint)Table_head.FieldOffsets.macStyle);
newbuf.SetUshort(m_lowestRecPPEM, (uint)Table_head.FieldOffsets.lowestRecPPEM);
newbuf.SetShort (m_fontDirectionHint, (uint)Table_head.FieldOffsets.fontDirectionHint);
newbuf.SetShort (m_indexToLocFormat, (uint)Table_head.FieldOffsets.indexToLocFormat);
newbuf.SetShort (m_glyphDataFormat, (uint)Table_head.FieldOffsets.glyphDataFormat);
// put the buffer into a Table_head object and return it
Table_head headTable = new Table_head("head", newbuf);
return headTable;
}