From: handa Date: Fri, 17 Oct 2003 13:17:38 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: REL-0-9-1~85 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=d3a865462f22f5da26dee638ab3b42bb49894084;p=m17n%2Flibotf.git *** empty log message *** --- diff --git a/example/otfimage.c b/example/otfimage.c index e64ad1c..ca36cf5 100644 --- a/example/otfimage.c +++ b/example/otfimage.c @@ -46,7 +46,6 @@ main (int argc, char **argv) int err; int i; int pixel_size = DEFAULT_PIXEL_SIZE; - FT_UInt *raw_table; FT_UInt unicode_table[0x80]; int max_glyph_id; @@ -71,9 +70,9 @@ main (int argc, char **argv) } for (i = 0, max_glyph_id = 0; i < 0x10000; i++) - if (FT_Load_Glyph (face, i, FT_LOAD_RENDER | FT_LOAD_MONOCHROME) - - + if (! FT_Load_Glyph (face, i, FT_LOAD_RENDER | FT_LOAD_MONOCHROME)) + max_glyph_id = i; + for (i = 0x0D00; i < 0x0D80; i++) { unicode_table[i - 0x0D00] = FT_Get_Char_Index (face, (FT_ULong) i);