diff options
Diffstat (limited to 'libass/ass_font.c')
-rw-r--r-- | libass/ass_font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_font.c b/libass/ass_font.c index a62c91c..5f29c2a 100644 --- a/libass/ass_font.c +++ b/libass/ass_font.c @@ -117,7 +117,7 @@ static void set_font_metrics(FT_Face face) // Anything without valid OS/2 Win values isn't supported by VSFilter, // so at this point compatibility's out the window and we're just // trying to render _something_ readable. - if (face->ascender + face->descender == 0 || face->height == 0) { + if (face->ascender - face->descender == 0 || face->height == 0) { if (os2 && (os2->sTypoAscender - os2->sTypoDescender) != 0) { face->ascender = os2->sTypoAscender; face->descender = os2->sTypoDescender; |