X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fpdf%2FInfoOutputDev.h;h=4198b7d7ef2f30cdb7361769318383c8625ac0a4;hp=ead6a44926aed7c8046de67d24a657d4b27c2633;hb=fc713269e9d26d1be92f70e1ff0d508c94a65dba;hpb=fc815311aa1bd67877b404493838dfd85a86f596 diff --git a/lib/pdf/InfoOutputDev.h b/lib/pdf/InfoOutputDev.h index ead6a44..4198b7d 100644 --- a/lib/pdf/InfoOutputDev.h +++ b/lib/pdf/InfoOutputDev.h @@ -44,6 +44,7 @@ #include "../gfxdevice.h" #include "../gfxtools.h" #include "../gfxfont.h" +#include "../q.h" #define INTERNAL_FONT_SIZE 1024.0 #define GLYPH_IS_SPACE(g) ((!(g)->line || ((g)->line->type==gfx_moveTo && !(g)->line->next)) && (g)->advance) @@ -72,6 +73,7 @@ public: double lastx,lasty; int lastchar; + int lastadvance; double ascender,descender; @@ -81,10 +83,12 @@ public: double max_size; int num_glyphs; GlyphInfo**glyphs; - int*charid2glyph; + dict_t**kerning; + SplashFont*splash_font; char seen; int space_char; + float average_advance; }; extern char*getFontID(GfxFont*font); @@ -118,6 +122,9 @@ class InfoOutputDev: public OutputDev virtual void drawLink(Link *link, Catalog *catalog); virtual double getMaximumFontSize(char*id); virtual void updateFont(GfxState *state); + + virtual void saveState(GfxState *state); + virtual void restoreState(GfxState *state); virtual GBool beginType3Char(GfxState *state, double x, double y, double dx, double dy, CharCode code, Unicode *u, int uLen); virtual void type3D0(GfxState *state, double wx, double wy);