X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fttf.c;h=93629f3f4e42080d8becf66874ddbc8645e79b75;hp=3edcc217e3a96cb666efa18810f957645ac4e3e2;hb=4f2366641015f517c0e4f841b7ae6a9b90c7b184;hpb=421b1bd0f1f397baa682fc9e0e5cde4713595cf1 diff --git a/lib/ttf.c b/lib/ttf.c index 3edcc21..93629f3 100644 --- a/lib/ttf.c +++ b/lib/ttf.c @@ -404,7 +404,7 @@ static table_os2_t*os2_new(ttf_t*ttf) os2->yStrikeoutSize = ttf->head->units_per_em / 10; os2->yStrikeoutPosition = ymid; os2->usWinAscent = ttf->ascent; - os2->usWinDescent = -ttf->descent; + os2->usWinDescent = ttf->descent>0?0:-ttf->descent; os2->sxHeight = ymid; os2->sCapHeight = height*2/3; }