📄 tttypes.h
字号:
/* maxStackElements :: The maximum number of stack elements used */ /* during bytecode interpretation. */ /* */ /* maxSizeOfInstructions :: The maximum number of TrueType opcodes */ /* used for glyph hinting. */ /* */ /* maxComponentElements :: An obscure value related to composite */ /* glyphs definitions. */ /* */ /* maxComponentDepth :: An obscure value related to composite */ /* glyphs definitions. Probably the maximum */ /* number of simple glyphs in a composite. */ /* */ /* <Note> */ /* This structure is only used during font loading. */ /* */ typedef struct TT_MaxProfile_ { TT_Fixed version; TT_UShort numGlyphs; TT_UShort maxPoints; TT_UShort maxContours; TT_UShort maxCompositePoints; TT_UShort maxCompositeContours; TT_UShort maxZones; TT_UShort maxTwilightPoints; TT_UShort maxStorage; TT_UShort maxFunctionDefs; TT_UShort maxInstructionDefs; TT_UShort maxStackElements; TT_UShort maxSizeOfInstructions; TT_UShort maxComponentElements; TT_UShort maxComponentDepth; } TT_MaxProfile; /*************************************************************************/ /* */ /* <Struct> */ /* TT_LongMetrics */ /* */ /* <Description> */ /* A structure modeling the long metrics of the `hmtx' and `vmtx' */ /* TrueType tables. The values are expressed in font units. */ /* */ /* <Fields> */ /* advance :: The advance width or height for the glyph. */ /* bearing :: The left-side or top-side bearing for the glyph. */ /* */ typedef struct TT_LongMetrics_ { TT_UShort advance; TT_Short bearing; } TT_LongMetrics; /*************************************************************************/ /* */ /* <Type> TT_ShortMetrics */ /* */ /* <Description> */ /* A simple type to model the short metrics of the `hmtx' and `vmtx' */ /* tables. */ /* */ typedef TT_Short TT_ShortMetrics; /*************************************************************************/ /* */ /* <Struct> */ /* TT_NameRec */ /* */ /* <Description> */ /* A structure modeling TrueType name records. Name records are used */ /* to store important strings like family name, style name, */ /* copyright, etc. in _localized_ versions (i.e., language, encoding, */ /* etc). */ /* */ /* <Fields> */ /* platformID :: The ID of the name's encoding platform. */ /* */ /* encodingID :: The platform-specific ID for the name's encoding. */ /* */ /* languageID :: The platform-specific ID for the name's language. */ /* */ /* nameID :: The ID specifying what kind of name this is. */ /* */ /* stringLength :: The length of the string in bytes. */ /* */ /* stringOffset :: The offset to the string in the `name' table. */ /* */ /* string :: A pointer to the string's bytes. Note that these */ /* are usually UTF-16 encoded characters. */ /* */ typedef struct TT_NameRec_ { TT_UShort platformID; TT_UShort encodingID; TT_UShort languageID; TT_UShort nameID; TT_UShort stringLength; TT_UShort stringOffset; /* this last field is not defined in the spec */ /* but used by the FreeType engine */ TT_Byte* string; } TT_NameRec; /*************************************************************************/ /* */ /* <Struct> */ /* TT_NameTable */ /* */ /* <Description> */ /* A structure modeling the TrueType name table. */ /* */ /* <Fields> */ /* format :: The format of the name table. */ /* */ /* numNameRecords :: The number of names in table. */ /* */ /* storageOffset :: The offset of the name table in the `name' */ /* TrueType table. */ /* */ /* names :: An array of name records. */ /* */ /* storage :: The names storage area. */ /* */ typedef struct TT_NameTable_ { TT_UShort format; TT_UShort numNameRecords; TT_UShort storageOffset; TT_NameRec* names; TT_Byte* storage; } TT_NameTable; /*************************************************************************/ /*************************************************************************/ /*************************************************************************/ /*** ***/ /*** ***/ /*** OPTIONAL TRUETYPE/OPENTYPE TABLES DEFINITIONS ***/ /*** ***/ /*** ***/ /*************************************************************************/ /*************************************************************************/ /*************************************************************************/ /*************************************************************************/ /* */ /* <Struct> */ /* TT_GaspRange */ /* */ /* <Description> */ /* A tiny structure used to model a gasp range according to the */ /* TrueType specification. */ /* */ /* <Fields> */ /* maxPPEM :: The maximum ppem value to which `gaspFlag' applies. */ /* */ /* gaspFlag :: A flag describing the grid-fitting and anti-aliasing */ /* modes to be used. */ /* */ typedef struct TT_GaspRange_ { TT_UShort maxPPEM; TT_UShort gaspFlag; } TT_GaspRange;#define TT_GASP_GRIDFIT 0x01#define TT_GASP_DOGRAY 0x02 /*************************************************************************/ /* */ /* <Struct> */ /* TT_Gasp */ /* */ /* <Description> */ /* A structure modeling the TrueType `gasp' table used to specify */ /* grid-fitting and anti-aliasing behaviour. */ /* */ /* <Fields> */ /* version :: The version number. */ /* numRanges :: The number of gasp ranges in table. */ /* gaspRanges :: An array of gasp ranges. */ /* */ typedef struct TT_Gasp_ { TT_UShort version; TT_UShort numRanges; TT_GaspRange* gaspRanges; } TT_Gasp; /*************************************************************************/ /* */ /* <Struct> */ /* TT_HdmxRec */ /* */ /* <Description> */ /* A small structure used to model the pre-computed widths of a given */ /* size. They're found in the `hdmx' table. */ /* */ /* <Fields> */ /* ppem :: The pixels per EM value at which these metrics apply. */ /* */ /* max_width :: The maximum advance width for this metric. */ /* */ /* widths :: A
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -