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:
ac23e31
)
tried to fix font layout
author
kramm
<kramm>
Wed, 12 Mar 2008 19:08:34 +0000
(19:08 +0000)
committer
kramm
<kramm>
Wed, 12 Mar 2008 19:08:34 +0000
(19:08 +0000)
lib/devices/swf.c
patch
|
blob
|
history
diff --git
a/lib/devices/swf.c
b/lib/devices/swf.c
index
4f3b970
..
8cbfec0
100644
(file)
--- a/
lib/devices/swf.c
+++ b/
lib/devices/swf.c
@@
-2470,8
+2470,8
@@
static SWFFONT* gfxfont_to_swffont(gfxfont_t*font, const char* id)
advance = xmax;
}
advance = xmax;
}
- if(advance<32768) {
- swffont->glyph[t].advance = advance;
+ if(advance<32768/20) {
+ swffont->glyph[t].advance = advance*20;
} else {
swffont->glyph[t].advance = 32767;
}
} else {
swffont->glyph[t].advance = 32767;
}
@@
-2489,6
+2489,9
@@
static SWFFONT* gfxfont_to_swffont(gfxfont_t*font, const char* id)
swffont->layout->descent = (bounds.ymax - bounds.ymin)/2;
swffont->layout->leading = bounds.ymax - bounds.ymin;
}
swffont->layout->descent = (bounds.ymax - bounds.ymin)/2;
swffont->layout->leading = bounds.ymax - bounds.ymin;
}
+ swffont->layout->descent= (bounds.ymax - bounds.ymin);
+ swffont->layout->ascent = 0;
+ swffont->layout->leading = bounds.ymax - bounds.ymin;
return swffont;
}
return swffont;
}