unsigned char *buf;
FT_GlyphSlot glyph;
int dwidth, x, y;
-
+
if (err)
return;
glyph = face->glyph;
char *filename;
int platform_id, encoding_id;
- if (argc < 1)
+ if (argc <= 1)
FATAL_ERROR ("Usage: %s ENCODING OTF-FILE\n", argv[0]);
if (sscanf (argv[1], "%d-%d", &platform_id, &encoding_id) != 2)
{
}
else
filename = argv[2];
-
+
if ((err = FT_Init_FreeType (&library)))
FATAL_ERROR ("%s\n", "FT_Init_FreeType: error");
err = FT_New_Face (library, filename, 0, &face);