Go to the source code of this file.
|
| | T1_Done_Metrics (FT_Memory memory, AFM_FontInfo fi) |
| |
| static FT_Int | t1_get_index (const char *name, FT_Offset len, void *user_data) |
| |
| | compare_kern_pairs (const void *a, const void *b) |
| |
| static FT_Error | T1_Read_PFM (FT_Face t1_face, FT_Stream stream, AFM_FontInfo fi) |
| |
| | T1_Read_Metrics (FT_Face t1_face, FT_Stream stream) |
| |
| | T1_Get_Kerning (AFM_FontInfo fi, FT_UInt glyph1, FT_UInt glyph2, FT_Vector *kerning) |
| |
| | T1_Get_Track_Kerning (FT_Face face, FT_Fixed ptsize, FT_Int degree, FT_Fixed *kerning) |
| |
◆ FT_COMPONENT
◆ KERN_INDEX
◆ compare_kern_pairs()
Definition at line 87 of file t1afm.c.
89 {
92
95
96
97 if ( index1 > index2 )
98 return 1;
99 else if ( index1 < index2 )
100 return -1;
101 else
102 return 0;
103 }
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
#define KERN_INDEX(g1, g2)
struct AFM_KernPairRec_ * AFM_KernPair
Referenced by T1_Read_PFM().
◆ T1_Done_Metrics()
◆ t1_get_index()
Definition at line 54 of file t1afm.c.
57 {
60
61
62
64 return 0;
65
67 {
69
70
71 if ( gname && gname[0] ==
name[0] &&
75 }
76
77 return 0;
78 }
struct T1_FontRec_ * T1_Font
Referenced by T1_Read_Metrics().
◆ T1_Get_Kerning()
Definition at line 329 of file t1afm.c.
333 {
336
337
338
341
343 {
345
346
349
351 {
354
355 return;
356 }
357
360 else
362 }
363
366 }
FT_UInt FT_UInt FT_Vector * kerning
Referenced by Get_Kerning().
◆ T1_Get_Track_Kerning()
Definition at line 370 of file t1afm.c.
374 {
377
378
379 if ( !fi )
380 return FT_THROW( Invalid_Argument );
381
383 {
385
386
387 if ( tk->
degree != degree )
388 continue;
389
390 if ( ptsize < tk->min_ptsize )
394 else
395 {
400 }
401 }
402
404 }
FT_MulDiv(FT_Long a, FT_Long b, FT_Long c)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
struct AFM_FontInfoRec_ * AFM_FontInfo
◆ T1_Read_Metrics()
Definition at line 235 of file t1afm.c.
237 {
245
246
247 if (
face->afm_data )
248 {
250 " Freeing previously attached metrics data.\n" ));
252
254 }
255
259
263
266 {
271
273 {
276 parser.user_data = t1_font;
277
280 }
281 }
282
284 {
286
287
288
293 }
294
296 {
298
301
304
305
308
310 {
314 }
315 }
316
318
320 if ( fi )
322
324 }
#define FT_FACE_FLAG_KERNING
#define FT_TRACE1(varformat)
#define FT_FRAME_ENTER(size)
#define FT_PEEK_ULONG_LE(p)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
GLenum GLuint GLint GLenum face
static char memory[1024 *256]
struct PSAux_ServiceRec_ * PSAux_Service
FT_Error(* init)(AFM_Parser parser, FT_Memory memory, FT_Byte *base, FT_Byte *limit)
FT_Error(* parse)(AFM_Parser parser)
void(* done)(AFM_Parser parser)
const AFM_Parser_FuncsRec * afm_parser_funcs
static FT_Error T1_Read_PFM(FT_Face t1_face, FT_Stream stream, AFM_FontInfo fi)
static FT_Int t1_get_index(const char *name, FT_Offset len, void *user_data)
T1_Done_Metrics(FT_Memory memory, AFM_FontInfo fi)
struct T1_FaceRec_ * T1_Face
◆ T1_Read_PFM()
Definition at line 108 of file t1afm.c.
111 {
118 FT_Int width_table_length;
122
123
126
127
128
131 {
134 }
136
137 p += 18 + width_table_length;
139
141
142
145
147
149
151 {
154 }
155
159 {
162 }
163
164
167
168
171
172
175
176
177
178
179
182
184 {
186
188 {
192 break;
193 }
194 }
195
196
197
198
199
200
202 {
205
208
209 kp++;
210 }
211
212 if ( oldcharmap )
216
217
220
223 {
226 }
227
229 }
FT_Get_Char_Index(FT_Face face, FT_ULong charcode)
FT_Set_Charmap(FT_Face face, FT_CharMap charmap)
#define FT_QNEW_ARRAY(ptr, count)
#define FT_PEEK_SHORT_LE(p)
#define FT_PEEK_USHORT_LE(p)
compare_kern_pairs(const void *a, const void *b)
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList
Referenced by T1_Read_Metrics().