#include <ft2build.h>
#include "t1afm.h"
#include "t1errors.h"
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 88 of file t1afm.c.
90 {
93
96
97
98 if ( index1 > index2 )
99 return 1;
100 else if ( index1 < index2 )
101 return -1;
102 else
103 return 0;
104 }
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 55 of file t1afm.c.
58 {
61
62
63
65 return 0;
66
68 {
70
71
72 if ( gname && gname[0] ==
name[0] &&
76 }
77
78 return 0;
79 }
struct T1_FontRec_ * T1_Font
Referenced by T1_Read_Metrics().
◆ T1_Get_Kerning()
Definition at line 330 of file t1afm.c.
334 {
337
338
339
342
344 {
346
347
350
352 {
355
356 return;
357 }
358
361 else
363 }
364
367 }
FT_UInt FT_UInt FT_Vector * kerning
Referenced by Get_Kerning().
◆ T1_Get_Track_Kerning()
Definition at line 371 of file t1afm.c.
375 {
378
379
380 if ( !fi )
381 return FT_THROW( Invalid_Argument );
382
384 {
386
387
388 if ( tk->
degree != degree )
389 continue;
390
391 if ( ptsize < tk->min_ptsize )
395 else
396 {
401 }
402 }
403
405 }
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 236 of file t1afm.c.
238 {
246
247
248 if (
face->afm_data )
249 {
251 " Freeing previously attached metrics data.\n" ));
253
255 }
256
260
264
267 {
272
274 {
277 parser.user_data = t1_font;
278
281 }
282 }
283
285 {
287
288
289
294 }
295
297 {
299
302
305
306
309
311 {
315 }
316 }
317
319
321 if ( fi )
323
325 }
#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 109 of file t1afm.c.
112 {
119 FT_Int width_table_length;
123
124
127
128
129
132 {
135 }
137
138 p += 18 + width_table_length;
140
142
143
146
148
150
152 {
155 }
156
160 {
163 }
164
165
168
169
172
173
176
177
178
179
180
183
185 {
187
189 {
193 break;
194 }
195 }
196
197
198
199
200
201
203 {
206
209
210 kp++;
211 }
212
213 if ( oldcharmap )
217
218
221
224 {
227 }
228
230 }
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().