summaryrefslogtreecommitdiffstats
path: root/libass
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2020-07-05 21:42:33 +0300
committerOleg Oshmyan <chortos@inbox.lv>2020-07-05 21:42:33 +0300
commitfe018b5ee9ef619c7657476f65fa5d5f4a757d29 (patch)
treec2a6ddba0122a9e6104054263cd8873a856294af /libass
parent4abf075d45cf264b466011f4d7a2c38bd6fe4e09 (diff)
downloadlibass-fe018b5ee9ef619c7657476f65fa5d5f4a757d29.tar.bz2
libass-fe018b5ee9ef619c7657476f65fa5d5f4a757d29.tar.xz
ass_font: fix typo in zero height check
Diffstat (limited to 'libass')
-rw-r--r--libass/ass_font.c2
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;