7 #include FT_INTERNAL_STREAM_H 8 #include FT_INTERNAL_POSTSCRIPT_AUX_H 15 printf(
"This AFM is for %sCID font.\n\n",
18 printf(
"FontBBox: %.2f %.2f %.2f %.2f\n", fi->
FontBBox.
xMin / 65536.,
22 printf(
"Ascender: %.2f\n", fi->
Ascender / 65536. );
23 printf(
"Descender: %.2f\n\n", fi->
Descender / 65536. );
26 printf(
"There are %d sets of track kernings:\n",
29 printf(
"There is no track kerning.\n" );
36 printf(
"\t%2d: %5.2f %5.2f %5.2f %5.2f\n", tk->
degree,
46 printf(
"There are %d kerning pairs:\n",
49 printf(
"There is no kerning pair.\n" );
56 printf(
"\t%3d + %3d => (%4d, %4d)\n", kp->
index1,
121 return FT_ERR( Invalid_Argument );
134 error =
parse_afm( library, &stream, &fi );
149 printf(
"parse error\n" );
FT_Stream_EnterFrame(FT_Stream stream, FT_ULong count)
const AFM_Parser_FuncsRec * afm_parser_funcs
FT_Error(* init)(AFM_Parser parser, FT_Memory memory, FT_Byte *base, FT_Byte *limit)
int main(int argc, char **argv)
int dummy_get_index(const char *name, FT_Offset len, void *user_data)
void dump_fontinfo(AFM_FontInfo fi)
FT_Stream_Close(FT_Stream stream)
FT_Done_FreeType(FT_Library library)
FT_Init_FreeType(FT_Library *alibrary)
FT_Error parse_afm(FT_Library library, FT_Stream stream, AFM_FontInfo fi)
FT_Stream_Open(FT_Stream stream, const char *filepathname)
void(* done)(AFM_Parser parser)
struct PSAux_ServiceRec_ * PSAux_Service
FT_Error(* parse)(AFM_Parser parser)
FT_Int(* get_index)(const char *name, FT_Offset len, void *user_data)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
GLuint const GLchar * name
FT_Get_Module_Interface(FT_Library library, const char *mod_name)