21 #include FT_INTERNAL_DEBUG_H 22 #include FT_INTERNAL_STREAM_H 23 #include FT_INTERNAL_POSTSCRIPT_AUX_H 34 #define FT_COMPONENT trace_t1afm 53 t1_get_index(
const char*
name,
70 if ( gname && gname[0] ==
name[0] &&
81 #define KERN_INDEX( g1, g2 ) ( ( (FT_ULong)(g1) << 16 ) | (g2) ) 96 if ( index1 > index2 )
98 else if ( index1 < index2 )
117 FT_Int width_table_length;
132 error =
FT_THROW( Unknown_File_Format );
137 p += 18 + width_table_length;
152 error =
FT_THROW( Unknown_File_Format );
160 error =
FT_THROW( Unknown_File_Format );
201 for ( ; p <
limit ; p += 4 )
212 if ( oldcharmap !=
NULL )
279 if ( stream->
size > 6 &&
282 error = T1_Read_PFM( t1_face, stream, fi );
302 ( (
T1_Face)t1_face )->afm_data = fi;
337 mid = min + ( max -
min ) / 2;
370 return FT_THROW( Invalid_Argument );
377 if ( tk->
degree != degree )
380 if ( ptsize < tk->min_ptsize )
struct AFM_KernPairRec_ * AFM_KernPair
compare_kern_pairs(const void *a, const void *b)
const AFM_Parser_FuncsRec * afm_parser_funcs
struct T1_FaceRec_ * T1_Face
GLboolean GLboolean GLboolean GLboolean a
#define KERN_INDEX(g1, g2)
FT_Error(* init)(AFM_Parser parser, FT_Memory memory, FT_Byte *base, FT_Byte *limit)
return FT_THROW(Missing_Property)
#define FT_QNEW_ARRAY(ptr, count)
GLboolean GLboolean GLboolean b
T1_Done_Metrics(FT_Memory memory, AFM_FontInfo fi)
GLenum GLuint GLint GLenum face
struct T1_FontRec_ * T1_Font
void(* done)(AFM_Parser parser)
FT_Get_Char_Index(FT_Face face, FT_ULong charcode)
FT_MulDiv(FT_Long a, FT_Long b, FT_Long c)
float min(float a, float b)
struct PSAux_ServiceRec_ * PSAux_Service
FT_Error(* parse)(AFM_Parser parser)
FT_Int(* get_index)(const char *name, FT_Offset len, void *user_data)
#define FT_CALLBACK_DEF(x)
T1_Read_Metrics(FT_Face t1_face, FT_Stream stream)
struct AFM_FontInfoRec_ * AFM_FontInfo
FT_Set_Charmap(FT_Face face, FT_CharMap charmap)
#define FT_PEEK_ULONG_LE(p)
#define FT_PEEK_USHORT_LE(p)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
GLuint const GLchar * name
if(!abbox) return FT_THROW(Invalid_Argument)
#define FT_PEEK_SHORT_LE(p)
#define FT_FACE_FLAG_KERNING
#define FT_FRAME_ENTER(size)
T1_Get_Track_Kerning(FT_Face face, FT_Fixed ptsize, FT_Int degree, FT_Fixed *kerning)
T1_Get_Kerning(AFM_FontInfo fi, FT_UInt glyph1, FT_UInt glyph2, FT_Vector *kerning)