X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2FInfoOutputDev.h;h=0934addcb51d7bed6ebd68dc575608347f5d8480;hb=8aeee6106e6d04d3ced2afff12c238eb38254123;hp=68b036f6b6c6274a4039adc4213db34502478a17;hpb=cdcf434411b35bb57bc3de9dffa6314d6ac70d5f;p=swftools.git diff --git a/lib/pdf/InfoOutputDev.h b/lib/pdf/InfoOutputDev.h index 68b036f..0934add 100644 --- a/lib/pdf/InfoOutputDev.h +++ b/lib/pdf/InfoOutputDev.h @@ -46,6 +46,7 @@ #include "../gfxfont.h" #define INTERNAL_FONT_SIZE 1024.0 +#define GLYPH_IS_SPACE(g) ((!(g)->line || ((g)->line->type==gfx_moveTo && !(g)->line->next)) && (g)->advance) struct GlyphInfo { @@ -83,6 +84,8 @@ public: int*charid2glyph; SplashFont*splash_font; char seen; + int space_char; + float average_advance; }; extern char*getFontID(GfxFont*font); @@ -103,7 +106,6 @@ class InfoOutputDev: public OutputDev int num_polygons; int num_textfields; - void finish(); void dumpfonts(gfxdevice_t*dev); InfoOutputDev(XRef*xref);