Important: The information in this document is obsolete and should not be used for new development.
Glyph Shape Omit Byte Masks and Shifts
ThegxOmitGlyphMask1enumeration defines which bits in an omit byte correspond to the data compression opcode for additional field descriptors in thegxNewGlyphsstructure. The sequence of data is also defined. The omit byte and its related data sequence is given in the section "Glyph Shape Data" beginning on page 7-33.
enum gxOmitGlyphMask1 { gxOmitGlyphCharactersMask = 0xC0, gxOmitGlyphLengthMask = 0x30, gxOmitGlyphRunNumberMask = 0x0C, gxOmitGlyphOnePositionMask = 0x02, gxOmitGlyphDataMask = 0x01 };Constant descriptions
Once one of the
- gxOmitGlyphCharactersMask
- The mask used to select the data compression bits for the
charCountfunction parameter.- gxOmitGlyphLengthMask
- The mask used to select the data compression bits for the length in bytes of the data.
- gxOmitGlyphRunNumberMask
- The mask used to select the data compression bits for the number of
styleRuns.- gxOmitGlyphOnePositionMask
- The mask used to specify that the position can be represented with one point.
- gxOmitGlyphDataMask
- The mask used to select the data compression bits for the
textfunction parameter.gxOmitGlyphMask1enumeration masks has been used to select a data compression opcode for the parameters toGXNewGlyphsfunction, the corresponding bit shift from the gxOmitGlyphShift1 enumeration can be applied to the selected bits. The selected bits must be moved to the right by the indicated number of bits to isolate the data compression opcode so that it can be compared to other values.
enum gxOmitGlyphShift1 { gxOmitGlyphCharactersShift = 6, gxOmitGlyphLengthShift = 4, gxOmitGlyphRunNumberShift = 2, gxOmitGlyphOnePositionShift = 1, gxOmitGlyphDataShift = 0 };Constant descriptions
The
- gxOmitGlyphCharactersShift
- The bit shift required to isolate the compression bits for the
charCountfunction parameter.- gxOmitGlyphLengthShift
- The bit shift required to isolate the compression bits for the length in bytes of the data.
- gxOmitGlyphRunNumberShift
- The bit shift required to isolate the compression bits for the number of
styleRuns.- gxOmitGlyphOnePositionShift
- The bit shift required to specify that the position can be represented with 1 point.
- gxOmitGlyphDataShift
- The bit shift required to isolate the compression bits for the
textfunction parameter.gxOmitGlyphMask2enumeration defines which bits in an omit byte correspond to the data compression opcode for the parameters of theGXNewGlyphsfunction. The sequence of data is also defined. The omit byte and its related data sequence is given in the section "Glyph Shape Data" beginning on page 7-33.
enum gxOmitGlyphMask2 { gxOmitGlyphPositionsMask = 0xC0, gxOmitGlyphAdvancesMask = 0x20, gxOmitGlyphTangentsMask = 0x18, gxOmitGlyphRunsMask = 0x04, gxOmitGlyphStylesMask = 0x03 };Constant descriptions
Once one of the
- gxOmitGlyphPositionsMask
- The mask used to select the data compression bits for the
positionsfunction parameter.- gxOmitGlyphAdvancesMask
- The mask used to select the data compression bits for the
advancefunction parameter.- gxOmitGlyphTangentsMask
- The mask used to select the data compression bits for the
tangentsfunction parameter.- gxOmitGlyphRunsMask
- The mask used to select the data compression bits for the
styleRunsfunction parameter.- gxOmitGlyphStylesMask
- The mask used to select the data compression bits for the
glyphStylesfunction parameter.gxOmitGlyphMask2enumeration masks has been used to select a data compression opcode for the parameters to theGXNewGlyphfunction, the corresponding bit shift from the gxOmitGlyphShift2 enumeration can be applied to the selected bits. The selected bits must be moved to the right by the indicated number of bits to isolate the data compression opcode so that it can be compared to other values.
enum gxOmitGlyphShift2 { gxOmitGlyphPositionsShift = 6, gxOmitGlyphAdvancesShift = 5, gxOmitGlyphTangentsShift = 3, gxOmitGlyphRunsShift = 2, gxOmitGlyphStylesShift = 0 };Constant descriptions
- gxOmitGlyphPositionsShift
- The bit shift required to isolate the compression bits for the
positionsfunction parameter.- gxOmitGlyphAdvancesShift
- The bit shift required to isolate the compression bits for the
advancefunction parameter.- gxOmitGlyphTangentsShift
- The bit shift required to isolate the compression bits for the
tangentsfunction parameter.- gxOmitGlyphRunsShift
- The bit shift required to isolate the compression bits for the
styleRunsfunction parameter.- gxOmitGlyphStylesShift
- The bit shift required to isolate the compression bits for the
glyphStylesfunction parameter.