font->unicode2glyph = 0;
gfxfont_save(font, filename);
font->id=old_id;
+
+#ifdef RUN_TTX
+ /* for testing the generated fonts: run everything through ttx (fonttools) */
+ char cmd[256];
+ sprintf(cmd, "mv %s.ttf test.ttf", fontname);system(cmd);
+ system("rm -f test.ttx");
+ if(system("ttx test.ttf")&0xff00) exit(1);
+ sprintf(cmd, "mv test.ttf %s.old.ttf", fontname, fontname);system(cmd);
+ sprintf(cmd, "ttx test.ttx;mv test.ttf %s.ttf", fontname);system(cmd);
+ sprintf(cmd, "rm -f test.ttx");system(cmd);
+#endif
int l = strlen(font->id);
for(t=0;t<l+1;t++) {
{
table_maxp_t*maxp = rfx_calloc(sizeof(table_maxp_t));
int t;
+ maxp->maxContours=1;
if(ttf->num_glyphs) {
- int max = 0;
+ int max = 1;
for(t=0;t<ttf->num_glyphs;t++) {
if(ttf->glyphs[t].num_points>max)
max = ttf->glyphs[t].num_points;