git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
always assume space chars are at 32
[swftools.git]
/
lib
/
pdf
/
InfoOutputDev.cc
diff --git
a/lib/pdf/InfoOutputDev.cc
b/lib/pdf/InfoOutputDev.cc
index
bd1a0b5
..
5990d4f
100644
(file)
--- a/
lib/pdf/InfoOutputDev.cc
+++ b/
lib/pdf/InfoOutputDev.cc
@@
-119,14
+119,9
@@
static int findSpace(gfxfont_t*font)
gfxglyph_t*g = &font->glyphs[t];
if(GLYPH_IS_SPACE(g)) {
if(g->unicode == 32) return t;
gfxglyph_t*g = &font->glyphs[t];
if(GLYPH_IS_SPACE(g)) {
if(g->unicode == 32) return t;
- if(first_space<0)
- first_space = t;
}
}
}
}
- if(font->num_glyphs>32 && GLYPH_IS_SPACE(&font->glyphs[32])) {
- return 32;
- }
- return first_space;
+ return -1;
}
static int addSpace(gfxfont_t*font)
}
static int addSpace(gfxfont_t*font)