| OLD | NEW |
| 1 /***************************************************************************/ | 1 /***************************************************************************/ |
| 2 /* */ | 2 /* */ |
| 3 /* t1types.h */ | 3 /* t1types.h */ |
| 4 /* */ | 4 /* */ |
| 5 /* Basic Type1/Type2 type definitions and interface (specification */ | 5 /* Basic Type1/Type2 type definitions and interface (specification */ |
| 6 /* only). */ | 6 /* only). */ |
| 7 /* */ | 7 /* */ |
| 8 /* Copyright 1996-2004, 2006, 2008, 2009, 2011, 2013 by */ | 8 /* Copyright 1996-2015 by */ |
| 9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ | 9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
| 10 /* */ | 10 /* */ |
| 11 /* This file is part of the FreeType project, and may only be used, */ | 11 /* This file is part of the FreeType project, and may only be used, */ |
| 12 /* modified, and distributed under the terms of the FreeType project */ | 12 /* modified, and distributed under the terms of the FreeType project */ |
| 13 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ | 13 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
| 14 /* this file you indicate that you have read the license and */ | 14 /* this file you indicate that you have read the license and */ |
| 15 /* understand and accept it fully. */ | 15 /* understand and accept it fully. */ |
| 16 /* */ | 16 /* */ |
| 17 /***************************************************************************/ | 17 /***************************************************************************/ |
| 18 | 18 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 T1_EncodingType encoding_type; | 100 T1_EncodingType encoding_type; |
| 101 T1_EncodingRec encoding; | 101 T1_EncodingRec encoding; |
| 102 | 102 |
| 103 FT_Byte* subrs_block; | 103 FT_Byte* subrs_block; |
| 104 FT_Byte* charstrings_block; | 104 FT_Byte* charstrings_block; |
| 105 FT_Byte* glyph_names_block; | 105 FT_Byte* glyph_names_block; |
| 106 | 106 |
| 107 FT_Int num_subrs; | 107 FT_Int num_subrs; |
| 108 FT_Byte** subrs; | 108 FT_Byte** subrs; |
| 109 FT_PtrDist* subrs_len; | 109 FT_UInt* subrs_len; |
| 110 | 110 |
| 111 FT_Int num_glyphs; | 111 FT_Int num_glyphs; |
| 112 FT_String** glyph_names; /* array of glyph names */ | 112 FT_String** glyph_names; /* array of glyph names */ |
| 113 FT_Byte** charstrings; /* array of glyph charstrings */ | 113 FT_Byte** charstrings; /* array of glyph charstrings */ |
| 114 FT_PtrDist* charstrings_len; | 114 FT_UInt* charstrings_len; |
| 115 | 115 |
| 116 FT_Byte paint_type; | 116 FT_Byte paint_type; |
| 117 FT_Byte font_type; | 117 FT_Byte font_type; |
| 118 FT_Matrix font_matrix; | 118 FT_Matrix font_matrix; |
| 119 FT_Vector font_offset; | 119 FT_Vector font_offset; |
| 120 FT_BBox font_bbox; | 120 FT_BBox font_bbox; |
| 121 FT_Long font_id; | 121 FT_Long font_id; |
| 122 | 122 |
| 123 FT_Fixed stroke_width; | 123 FT_Fixed stroke_width; |
| 124 | 124 |
| 125 } T1_FontRec, *T1_Font; | 125 } T1_FontRec, *T1_Font; |
| 126 | 126 |
| 127 | 127 |
| 128 typedef struct CID_SubrsRec_ | 128 typedef struct CID_SubrsRec_ |
| 129 { | 129 { |
| 130 FT_UInt num_subrs; | 130 FT_Int num_subrs; |
| 131 FT_Byte** code; | 131 FT_Byte** code; |
| 132 | 132 |
| 133 } CID_SubrsRec, *CID_Subrs; | 133 } CID_SubrsRec, *CID_Subrs; |
| 134 | 134 |
| 135 | 135 |
| 136 /*************************************************************************/ | 136 /*************************************************************************/ |
| 137 /*************************************************************************/ | 137 /*************************************************************************/ |
| 138 /*************************************************************************/ | 138 /*************************************************************************/ |
| 139 /*** ***/ | 139 /*** ***/ |
| 140 /*** ***/ | 140 /*** ***/ |
| 141 /*** AFM FONT INFORMATION STRUCTURES ***/ | 141 /*** AFM FONT INFORMATION STRUCTURES ***/ |
| 142 /*** ***/ | 142 /*** ***/ |
| 143 /*** ***/ | 143 /*** ***/ |
| 144 /*************************************************************************/ | 144 /*************************************************************************/ |
| 145 /*************************************************************************/ | 145 /*************************************************************************/ |
| 146 /*************************************************************************/ | 146 /*************************************************************************/ |
| 147 | 147 |
| 148 typedef struct AFM_TrackKernRec_ | 148 typedef struct AFM_TrackKernRec_ |
| 149 { | 149 { |
| 150 FT_Int degree; | 150 FT_Int degree; |
| 151 FT_Fixed min_ptsize; | 151 FT_Fixed min_ptsize; |
| 152 FT_Fixed min_kern; | 152 FT_Fixed min_kern; |
| 153 FT_Fixed max_ptsize; | 153 FT_Fixed max_ptsize; |
| 154 FT_Fixed max_kern; | 154 FT_Fixed max_kern; |
| 155 | 155 |
| 156 } AFM_TrackKernRec, *AFM_TrackKern; | 156 } AFM_TrackKernRec, *AFM_TrackKern; |
| 157 | 157 |
| 158 typedef struct AFM_KernPairRec_ | 158 typedef struct AFM_KernPairRec_ |
| 159 { | 159 { |
| 160 FT_Int index1; | 160 FT_UInt index1; |
| 161 FT_Int index2; | 161 FT_UInt index2; |
| 162 FT_Int x; | 162 FT_Int x; |
| 163 FT_Int y; | 163 FT_Int y; |
| 164 | 164 |
| 165 } AFM_KernPairRec, *AFM_KernPair; | 165 } AFM_KernPairRec, *AFM_KernPair; |
| 166 | 166 |
| 167 typedef struct AFM_FontInfoRec_ | 167 typedef struct AFM_FontInfoRec_ |
| 168 { | 168 { |
| 169 FT_Bool IsCIDFont; | 169 FT_Bool IsCIDFont; |
| 170 FT_BBox FontBBox; | 170 FT_BBox FontBBox; |
| 171 FT_Fixed Ascender; | 171 FT_Fixed Ascender; |
| 172 FT_Fixed Descender; | 172 FT_Fixed Descender; |
| 173 AFM_TrackKern TrackKerns; /* free if non-NULL */ | 173 AFM_TrackKern TrackKerns; /* free if non-NULL */ |
| 174 FT_Int NumTrackKern; | 174 FT_UInt NumTrackKern; |
| 175 AFM_KernPair KernPairs; /* free if non-NULL */ | 175 AFM_KernPair KernPairs; /* free if non-NULL */ |
| 176 FT_Int NumKernPair; | 176 FT_UInt NumKernPair; |
| 177 | 177 |
| 178 } AFM_FontInfoRec, *AFM_FontInfo; | 178 } AFM_FontInfoRec, *AFM_FontInfo; |
| 179 | 179 |
| 180 | 180 |
| 181 /*************************************************************************/ | 181 /*************************************************************************/ |
| 182 /*************************************************************************/ | 182 /*************************************************************************/ |
| 183 /*************************************************************************/ | 183 /*************************************************************************/ |
| 184 /*** ***/ | 184 /*** ***/ |
| 185 /*** ***/ | 185 /*** ***/ |
| 186 /*** ORIGINAL T1_FACE CLASS DEFINITION ***/ | 186 /*** ORIGINAL T1_FACE CLASS DEFINITION ***/ |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 246 |
| 247 } CID_FaceRec; | 247 } CID_FaceRec; |
| 248 | 248 |
| 249 | 249 |
| 250 FT_END_HEADER | 250 FT_END_HEADER |
| 251 | 251 |
| 252 #endif /* __T1TYPES_H__ */ | 252 #endif /* __T1TYPES_H__ */ |
| 253 | 253 |
| 254 | 254 |
| 255 /* END */ | 255 /* END */ |
| OLD | NEW |