git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c39317f
)
set FONT_INTERNAL_SIZE to 4.
author
kramm
<kramm>
Fri, 10 Sep 2004 14:24:24 +0000
(14:24 +0000)
committer
kramm
<kramm>
Fri, 10 Sep 2004 14:24:24 +0000
(14:24 +0000)
pdf2swf/swfoutput.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/swfoutput.cc
b/pdf2swf/swfoutput.cc
index
ea6ae37
..
3511eee
100644
(file)
--- a/
pdf2swf/swfoutput.cc
+++ b/
pdf2swf/swfoutput.cc
@@
-1001,8
+1001,10
@@
struct fontlist_t
fontlist_t*next;
} *fontlist = 0;
fontlist_t*next;
} *fontlist = 0;
-/* TODO: why don't higher values (64, 1024) work here? */
-#define FONT_INTERNAL_SIZE 16
+/* Notice: we can only put chars in the range -1639,1638 (-32768/20,32768/20).
+ So if we set this value to high, the char coordinates will overflow.
+ If we set it to low, however, the char positions will be inaccurate */
+#define FONT_INTERNAL_SIZE 4
/* process a character. */
static int drawchar(struct swfoutput*obj, SWFFONT *swffont, char*character, int charnr, int u, swfmatrix*m)
/* process a character. */
static int drawchar(struct swfoutput*obj, SWFFONT *swffont, char*character, int charnr, int u, swfmatrix*m)