git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed some compiler warnings, fixed as3compile spec for-in.as
[swftools.git]
/
lib
/
pdf
/
InfoOutputDev.h
diff --git
a/lib/pdf/InfoOutputDev.h
b/lib/pdf/InfoOutputDev.h
index
68b036f
..
0934add
100644
(file)
--- a/
lib/pdf/InfoOutputDev.h
+++ b/
lib/pdf/InfoOutputDev.h
@@
-46,6
+46,7
@@
#include "../gfxfont.h"
#define INTERNAL_FONT_SIZE 1024.0
#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
{
struct GlyphInfo
{
@@
-83,6
+84,8
@@
public:
int*charid2glyph;
SplashFont*splash_font;
char seen;
int*charid2glyph;
SplashFont*splash_font;
char seen;
+ int space_char;
+ float average_advance;
};
extern char*getFontID(GfxFont*font);
};
extern char*getFontID(GfxFont*font);
@@
-103,7
+106,6
@@
class InfoOutputDev: public OutputDev
int num_polygons;
int num_textfields;
int num_polygons;
int num_textfields;
- void finish();
void dumpfonts(gfxdevice_t*dev);
InfoOutputDev(XRef*xref);
void dumpfonts(gfxdevice_t*dev);
InfoOutputDev(XRef*xref);