git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed logf to msg.
[swftools.git]
/
pdf2swf
/
SWFOutputDev.cc
diff --git
a/pdf2swf/SWFOutputDev.cc
b/pdf2swf/SWFOutputDev.cc
index
193dd44
..
cef6733
100644
(file)
--- a/
pdf2swf/SWFOutputDev.cc
+++ b/
pdf2swf/SWFOutputDev.cc
@@
-46,10
+46,9
@@
#include "GlobalParams.h"
//swftools header files
#include "swfoutput.h"
#include "GlobalParams.h"
//swftools header files
#include "swfoutput.h"
-extern "C" {
#include "../lib/log.h"
#include "../lib/log.h"
+
#include "ttf2pt1.h"
#include "ttf2pt1.h"
-}
#define logf logarithmf // logf is also used by ../lib/log.h
#include <math.h>
#define logf logarithmf // logf is also used by ../lib/log.h
#include <math.h>
@@
-1058,7
+1057,13
@@
char*SWFOutputDev::writeEmbeddedFontToFile(XRef*ref, GfxFont*font)
char*tmp;
tmp = strdup(mktmpname((char*)name2));
sprintf(name2, "%s", tmp);
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("<verbose> Invoking ttf2pt1...");
ttf2pt1_main(5,a);
unlink(tmpFileName);
logf("<verbose> Invoking ttf2pt1...");
ttf2pt1_main(5,a);
unlink(tmpFileName);