#include <ft2build.h>
Go to the source code of this file.
Functions | |
void | dump_fontinfo (AFM_FontInfo fi) |
int | dummy_get_index (const char *name, FT_Offset len, void *user_data) |
FT_Error | parse_afm (FT_Library library, FT_Stream stream, AFM_FontInfo fi) |
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 | ) |
Definition at line 10 of file test_afm.c.
References AFM_FontInfoRec_::Ascender, AFM_FontInfoRec_::Descender, AFM_FontInfoRec_::FontBBox, i, AFM_FontInfoRec_::IsCIDFont, AFM_FontInfoRec_::KernPairs, AFM_FontInfoRec_::NumKernPair, AFM_FontInfoRec_::NumTrackKern, AFM_FontInfoRec_::TrackKerns, FT_BBox_::xMax, FT_BBox_::xMin, FT_BBox_::yMax, and FT_BBox_::yMin.
Referenced by main().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 111 of file test_afm.c.
References dump_fontinfo(), error, fi, FT_Done_FreeType(), FT_FREE, FT_Init_FreeType(), FT_Stream_Close(), FT_Stream_Open(), FT_ZERO, AFM_FontInfoRec_::KernPairs, FT_LibraryRec_::memory, parse_afm(), PC3::stream(), and AFM_FontInfoRec_::TrackKerns.
FT_Error parse_afm | ( | FT_Library | library, | |
FT_Stream | stream, | |||
AFM_FontInfo | fi | |||
) |
Definition at line 76 of file test_afm.c.
References PSAux_ServiceRec_::afm_parser_funcs, AFM_Parser_FuncsRec_::done, dummy_get_index(), error, AFM_ParserRec_::FontInfo, FT_Get_Module_Interface(), FT_Stream_EnterFrame(), AFM_ParserRec_::get_index, AFM_Parser_FuncsRec_::init, FT_LibraryRec_::memory, AFM_Parser_FuncsRec_::parse, and PC3::stream().
Referenced by main().