git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2a9f0e
)
always store detected spaces at unicode 32
author
Matthias Kramm
<kramm@quiss.org>
Fri, 12 Mar 2010 23:57:00 +0000
(15:57 -0800)
committer
Matthias Kramm
<kramm@quiss.org>
Fri, 12 Mar 2010 23:57:00 +0000
(15:57 -0800)
lib/pdf/InfoOutputDev.cc
patch
|
blob
|
history
diff --git
a/lib/pdf/InfoOutputDev.cc
b/lib/pdf/InfoOutputDev.cc
index
701c966
..
214814f
100644
(file)
--- a/
lib/pdf/InfoOutputDev.cc
+++ b/
lib/pdf/InfoOutputDev.cc
@@
-131,6
+131,12
@@
static int findSpace(gfxfont_t*font)
static int addSpace(gfxfont_t*font)
{
+ /* first, make sure the new space char is the only char that'll use unicode 32 */
+ int t;
+ for(t=0;t<font->num_glyphs;t++) {
+ if(font->glyphs[t].unicode==32)
+ font->glyphs[t].unicode=0;
+ }
font->num_glyphs++;
font->glyphs = (gfxglyph_t*)realloc(font->glyphs, sizeof(gfxglyph_t)*font->num_glyphs);
gfxglyph_t*g = &font->glyphs[font->num_glyphs-1];