X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2FSWFOutputDev.cc;h=cef673326eca478cc0c8ea0b205090a648f50992;hb=5ede6209244433ea174111a9079fa6d0cf84d227;hp=65d443ece43f4405407da1c34f4ec71d8118a709;hpb=bb40745fc8d5da08346318192c0644856deddb6e;p=swftools.git diff --git a/pdf2swf/SWFOutputDev.cc b/pdf2swf/SWFOutputDev.cc index 65d443e..cef6733 100644 --- a/pdf2swf/SWFOutputDev.cc +++ b/pdf2swf/SWFOutputDev.cc @@ -46,10 +46,9 @@ #include "GlobalParams.h" //swftools header files #include "swfoutput.h" -extern "C" { #include "../lib/log.h" + #include "ttf2pt1.h" -} #define logf logarithmf // logf is also used by ../lib/log.h #include @@ -65,7 +64,7 @@ int*pages = 0; int pagebuflen = 0; int pagepos = 0; -double caplinewidth = 1.0; +double caplinewidth = 3.0; static void printInfoString(Dict *infoDict, char *key, char *fmt); static void printInfoDate(Dict *infoDict, char *key, char *fmt); @@ -1058,7 +1057,13 @@ char*SWFOutputDev::writeEmbeddedFontToFile(XRef*ref, GfxFont*font) char*tmp; tmp = strdup(mktmpname((char*)name2)); sprintf(name2, "%s", tmp); - char*a[] = {"./ttf2pt1","-pttf","-b", tmpFileName, name2}; + char*a[] = {"./ttf2pt1", +#ifndef USE_FREETYPE + "-pttf", +#else + "-pft", +#endif + "-b", tmpFileName, name2}; logf(" Invoking ttf2pt1..."); ttf2pt1_main(5,a); unlink(tmpFileName);