]> granicus.if.org Git - libass/commitdiff
Use vertical ascender only for rotated glyphs
authorGrigori Goronzy <greg@blackbox>
Wed, 3 Mar 2010 12:38:04 +0000 (13:38 +0100)
committerGrigori Goronzy <greg@blackbox>
Sat, 10 Apr 2010 23:59:29 +0000 (01:59 +0200)
libass/ass_font.c

index f368d88a6aaf9f2985030e81ff0ec35dfe249e1f..b8e4e69789846bab4e73fb42d9f3f6dcc9d37bd2 100644 (file)
@@ -266,7 +266,7 @@ void ass_font_get_asc_desc(ASS_Font *font, uint32_t ch, int *asc,
                 *asc = FT_MulFix(face->ascender, y_scale);
                 *desc = FT_MulFix(-face->descender, y_scale);
             }
-            if (font->desc.vertical) {
+            if (font->desc.vertical && ch >= VERTICAL_LOWER_BOUND) {
                 *asc = FT_MulFix(face->max_advance_width, y_scale);
             }
             return;