Index: ttf2lht/ttf2lht.c =================================================================== --- ttf2lht/ttf2lht.c (revision 18919) +++ ttf2lht/ttf2lht.c (revision 18920) @@ -1,6 +1,7 @@ #include #include #include +#include FT_Library library; FT_Face face; @@ -9,6 +10,9 @@ { char *fontname = "FreeMono.ttf"; FT_Error errnum; + FT_ULong chr; + FT_UInt idx; + # undef __FTERRORS_H__ # define FT_ERRORDEF( e, v, s ) { e, s }, # define FT_ERROR_START_LIST { @@ -34,6 +38,13 @@ fprintf(stderr, "Family: %s\n", face->family_name); fprintf(stderr, "Height=%d ascender=%d descender=%d\n", face->height, face->ascender, face->descender); + for(chr = FT_Get_First_Char(face, &idx); idx != 0; chr = FT_Get_Next_Char(face, chr, &idx)) { + if ((chr <= 32) || (chr >= 127)) /* accept 7 bit printable ASCII only */ + continue; + printf("chr=%ld\n", chr); + } + FT_Done_Face(face); + FT_Done_Library(library); return 0; } \ No newline at end of file