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:
b2c998e
)
fixed windows ascent/descent
author
Matthias Kramm
<kramm@quiss.org>
Wed, 10 Mar 2010 03:00:55 +0000
(19:00 -0800)
committer
Matthias Kramm
<kramm@quiss.org>
Wed, 10 Mar 2010 03:00:55 +0000
(19:00 -0800)
lib/ttf.c
patch
|
blob
|
history
diff --git
a/lib/ttf.c
b/lib/ttf.c
index
19a097d
..
606bce1
100644
(file)
--- a/
lib/ttf.c
+++ b/
lib/ttf.c
@@
-405,8
+405,8
@@
static table_os2_t*os2_new(ttf_t*ttf)
os2->ySuperscriptYOffset = (ttf->head->ymax - ttf->head->ymin)/2;
os2->yStrikeoutSize = ttf->head->units_per_em / 10;
os2->yStrikeoutPosition = ymid;
- os2->usWinAscent = ttf->head->ymax>0?ttf->head->ymax:0;
- os2->usWinDescent = ttf->head->ymin<0?-ttf->head->ymin:0;
+ os2->usWinAscent = ttf->ascent;
+ os2->usWinDescent = -ttf->descent;
os2->sxHeight = ymid;
os2->sCapHeight = height*2/3;
}