summaryrefslogtreecommitdiff
path: root/pdf2swf
diff options
context:
space:
mode:
authorkramm <kramm>2004-08-16 08:37:13 +0000
committerkramm <kramm>2004-08-16 08:37:13 +0000
commitc4afc1bc9a91cee83287a150d08af9272dcfc3b2 (patch)
treec40fe6f80178eda1a9a958e0cd6df463a6c1c473 /pdf2swf
parentcdb1e053dfd92d2044d44a1d0503b68c1184d1e3 (diff)
added call to swf_SetLoadFontParameters() in order to set full_unicode
to 1.
Diffstat (limited to 'pdf2swf')
-rw-r--r--pdf2swf/swfoutput.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/pdf2swf/swfoutput.cc b/pdf2swf/swfoutput.cc
index 6ed1c312..2dc9f456 100644
--- a/pdf2swf/swfoutput.cc
+++ b/pdf2swf/swfoutput.cc
@@ -1046,6 +1046,13 @@ int getCharID(SWFFONT *font, int charnr, char *charname, int u)
return charnr;
}
+ /* the following is technically wrong, and only works if the font encoding
+ is US-ASCII based. It's needed for fonts which return broken unicode
+ indices */
+/* if(charnr>=0 && charnr<font->maxascii && font->ascii2glyph[charnr]>=0) {
+ return font->ascii2glyph[charnr];
+ }*/
+
return -1;
}
@@ -1077,6 +1084,7 @@ void swfoutput_setfont(struct swfoutput*obj, char*fontid, char*filename)
return;
}
+ swf_SetLoadFontParameters(0,/*skip unused*/0,/*full unicode*/1);
SWFFONT*swffont = swf_LoadFont(filename);
if(swffont == 0) {
@@ -1307,6 +1315,7 @@ static void endshape()
tag = tag->prev;
swf_DeleteTag(todel);
} else {
+ /* TODO: fix bounding box */
tag = swf_InsertTag(tag,ST_PLACEOBJECT2);
swf_ObjectPlace(tag,shapeid,/*depth*/depth++,NULL,NULL,NULL);
}