X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fswfoutput.cc;h=3511eee721e81d4faeb73a0aac7d2d0ba8d12e9e;hb=e52974a544099e9497126e51d3f7943270d21199;hp=440278551e73ea1eea1ddecad4a3953ea43ff002;hpb=1df057ec4c2d02722180ad2a8ce74bfdbea8f36a;p=swftools.git diff --git a/pdf2swf/swfoutput.cc b/pdf2swf/swfoutput.cc index 4402785..3511eee 100644 --- a/pdf2swf/swfoutput.cc +++ b/pdf2swf/swfoutput.cc @@ -1001,8 +1001,10 @@ struct fontlist_t fontlist_t*next; } *fontlist = 0; -/* todo: why don't higher values (64, 1024) work here? */ -#define FONT_INTERNAL_SIZE 1 +/* 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) @@ -1400,7 +1402,6 @@ static void startshape(struct swfoutput*obj) shapeid = ++currentswfid; swf_SetU16(tag,shapeid); // ID - /* TODO: patch back */ bboxrectpos = tag->len; r.xmin = 0; r.ymin = 0;