git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed annoying bfchar warnings
[swftools.git]
/
lib
/
pdf
/
InfoOutputDev.h
diff --git
a/lib/pdf/InfoOutputDev.h
b/lib/pdf/InfoOutputDev.h
index
68b036f
..
66958da
100644
(file)
--- a/
lib/pdf/InfoOutputDev.h
+++ b/
lib/pdf/InfoOutputDev.h
@@
-44,8
+44,10
@@
#include "../gfxdevice.h"
#include "../gfxtools.h"
#include "../gfxfont.h"
#include "../gfxdevice.h"
#include "../gfxtools.h"
#include "../gfxfont.h"
+#include "../q.h"
#define INTERNAL_FONT_SIZE 1024.0
#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
{
@@
-71,6
+73,7
@@
public:
double lastx,lasty;
int lastchar;
double lastx,lasty;
int lastchar;
+ int lastadvance;
double ascender,descender;
double ascender,descender;
@@
-80,9
+83,12
@@
public:
double max_size;
int num_glyphs;
GlyphInfo**glyphs;
double max_size;
int num_glyphs;
GlyphInfo**glyphs;
- int*charid2glyph;
+ dict_t**kerning;
+
SplashFont*splash_font;
char seen;
SplashFont*splash_font;
char seen;
+ int space_char;
+ float average_advance;
};
extern char*getFontID(GfxFont*font);
};
extern char*getFontID(GfxFont*font);
@@
-103,7
+109,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);