📄 t1types.h
字号:
/* } */ /* */ /* <Fields> */ /* xx :: matrix coefficient */ /* xy :: matrix coefficient */ /* yx :: matrix coefficient */ /* yy :: matrix coefficient */ /* */ REDEFINE( Matrix ); /* <Struct> T1_BBox */ /* */ /* <Description> */ /* A structure used to hold an outline's bounding box, i.e. */ /* the coordinates of its extrema in the horizontal and vertical */ /* directions. */ /* */ /* <Fields> */ /* xMin :: the horizontal minimum (left-most) */ /* yMin :: the vertical minimum (bottom-most) */ /* xMax :: the horizontal maximum (right-most) */ /* yMax :: the vertical maximum (top-most) */ /* */ REDEFINE( BBox ); /* <Type> T1_Error */ /* */ /* <Description> */ /* The FreeType error code type. A value of 0 is always */ /* interpreted as a succesful operation. */ /* */ REDEFINE( Error );/*************************************************************************//*************************************************************************//*************************************************************************//*** ***//*** ***//*** REQUIRED TYPE1/TYPE2 TABLES DEFINITIONS ***//*** ***//*** ***//*************************************************************************//*************************************************************************//*************************************************************************/ /***********************************************************************/ /* */ /* <Struct> T1_Encoding */ /* */ /* <Description> */ /* A structure modeling a custom encoding */ /* */ /* <Fields> */ /* num_chars :: number of char codes in encoding. Usually 256 */ /* code_first :: lower char code in encoding */ /* code_last :: higher char code in encoding */ /* */ /* char_code :: array of character codes */ /* char_index :: array of correpsonding glyph indices */ /* char_name :: array of correpsonding glyph names */ /* */ typedef struct T1_Encoding_ { T1_Int num_chars; T1_Int code_first; T1_Int code_last; T1_UShort* char_index; T1_String** char_name; } T1_Encoding; typedef enum T1_EncodingType_ { t1_encoding_none = 0, t1_encoding_array, t1_encoding_standard, t1_encoding_expert } T1_EncodingType; typedef struct T1_Font_ { /* font info dictionary */ T1_String* version; T1_String* notice; T1_String* full_name; T1_String* family_name; T1_String* weight; T1_Long italic_angle; T1_Bool is_fixed_pitch; T1_Short underline_position; T1_UShort underline_thickness; /* private dictionary */ T1_Int unique_id; T1_Int lenIV; T1_Byte num_blues; T1_Byte num_other_blues; T1_Byte num_family_blues; T1_Byte num_family_other_blues; T1_Short blue_values[14]; T1_Short other_blues[10]; T1_Short family_blues [14]; T1_Short family_other_blues[10]; T1_Fixed blue_scale; T1_Int blue_shift; T1_Int blue_fuzz; T1_UShort standard_width; T1_UShort standard_height; T1_Byte num_snap_widths; T1_Byte num_snap_heights; T1_Bool force_bold; T1_Bool round_stem_up; T1_Short stem_snap_widths [13]; /* reserve one place for the std */ T1_Short stem_snap_heights[13]; /* reserve one place for the std */ T1_Long language_group; T1_Long password; T1_Short min_feature[2]; /* top-level dictionary */ FT_String* font_name; T1_EncodingType encoding_type; T1_Encoding encoding; T1_Byte* subrs_block; T1_Byte* charstrings_block; T1_Byte* glyph_names_block; T1_Int num_subrs; T1_Byte** subrs; T1_Int* subrs_len; T1_Int num_glyphs; T1_String** glyph_names; /* array of glyph names */ T1_Byte** charstrings; /* array of glyph charstrings */ T1_Int* charstrings_len; T1_Byte paint_type; T1_Byte font_type; T1_Matrix font_matrix; T1_BBox font_bbox; T1_Long font_id; T1_Int stroke_width; } T1_Font; /*************************************************************************//*************************************************************************//*************************************************************************//*** ***//*** ***//*** ORIGINAL T1_FACE CLASS DEFINITION ***//*** ***//*** ***//*************************************************************************//*************************************************************************//*************************************************************************//*** ***//*** ***//*** This structure/class is defined here because it is common ***//*** to the following formats : TTF, OpenType-TT and OpenType-CFF ***//*** ***//*** Note however that the classes TT_Size, TT_GlyphSlot and ***//*** TT_CharMap are not shared between font drivers, and are ***//*** thus defined normally in "drivers/truetype/ttobjs.h" ***//*** ***//*** ***//*************************************************************************//*************************************************************************//*************************************************************************/ typedef struct T1_FaceRec_* T1_Face; /***************************************************/ /* */ /* T1_Face : */ /* */ /* Type1 face record.. */ /* */ typedef struct T1_FaceRec_ { FT_FaceRec root; T1_Font type1; void* psnames; void* afm_data; FT_CharMapRec charmaprecs[2]; FT_CharMap charmaps[2]; PS_Unicodes unicode_map; } T1_FaceRec;#endif /* T1TYPES_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -