X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fdevices%2Fpdf.c;h=3183ce85042df0b17b7d7fa68b31427678ab3196;hp=8ecfa874200c86e62c5f447be85f0805aa883c9d;hb=405f7bcba3314e746fd3893565bd77d775f6547a;hpb=219ea5ad983fc389d894c967528b451ea321b8c6 diff --git a/lib/devices/pdf.c b/lib/devices/pdf.c index 8ecfa87..3183ce8 100644 --- a/lib/devices/pdf.c +++ b/lib/devices/pdf.c @@ -392,6 +392,17 @@ void pdf_addfont(gfxdevice_t*dev, gfxfont_t*font) 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