X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fswfoutput.h;h=048361c52fda1359937a76cc410d2e836070116b;hb=938fa370c13c10a2c0d8e44bd5d4998aa9788f60;hp=ba54912eb552c5553e1ce33ceae3a34264c2c985;hpb=eec662ec199f07966d7ce4100f3eb0c2d2dd1516;p=swftools.git diff --git a/pdf2swf/swfoutput.h b/pdf2swf/swfoutput.h index ba54912..048361c 100644 --- a/pdf2swf/swfoutput.h +++ b/pdf2swf/swfoutput.h @@ -36,6 +36,7 @@ class SWFFont { T1_OUTLINE**outline; char**charname; + int*width; char*used; char*name; @@ -45,6 +46,9 @@ class SWFFont U16*swfcharid2char; int swfcharpos; + char**standardtable; + int standardtablesize; + public: int t1id; @@ -54,9 +58,11 @@ class SWFFont SWFFont(char*name, int t1id, char*filename); SWFFont::~SWFFont(); T1_OUTLINE*getOutline(char*charname); - int getSWFCharID(char*name); + int getSWFCharID(char*name, int charnr); + int getWidth(char*name); char*getName(); char*getCharName(int t); + int getCharWidth(int t) {return width[t];} }; struct swfoutput @@ -88,7 +94,7 @@ void swfoutput_setstrokecolor(struct swfoutput*, unsigned char r, unsigned char void swfoutput_setfontmatrix(struct swfoutput*,double,double,double,double); void swfoutput_setlinewidth(struct swfoutput*, double linewidth); -void swfoutput_drawchar(struct swfoutput*,double x,double y,char*a); +void swfoutput_drawchar(struct swfoutput*,double x,double y,char*a, int charnr); void swfoutput_drawpath(struct swfoutput*, T1_OUTLINE*outline, struct swfmatrix*m); void swfoutput_startclip(struct swfoutput*, T1_OUTLINE*outline, struct swfmatrix*m); void swfoutput_endclip(struct swfoutput*);