diff options
author | Oleg Oshmyan <chortos@inbox.lv> | 2020-07-05 21:42:33 +0300 |
---|---|---|
committer | Oleg Oshmyan <chortos@inbox.lv> | 2020-07-05 21:42:33 +0300 |
commit | fe018b5ee9ef619c7657476f65fa5d5f4a757d29 (patch) | |
tree | c2a6ddba0122a9e6104054263cd8873a856294af | |
parent | 4abf075d45cf264b466011f4d7a2c38bd6fe4e09 (diff) | |
download | libass-fe018b5ee9ef619c7657476f65fa5d5f4a757d29.tar.bz2 libass-fe018b5ee9ef619c7657476f65fa5d5f4a757d29.tar.xz |
ass_font: fix typo in zero height check
-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; |