From fa291a3269ee0fa76a17c976439a900b29084314 Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Thu, 14 Jul 2011 20:49:44 +0200 Subject: Revert @font ascender/descender hack This was introduced with commit e051ab. After re-evaluation, it seems to be rather wrong. Windows appears to use the same ascender as horizontal rendering, except for the first line. We don't have this special handling of the first line, but apart from that, everything is similar to Windows now. Verified with a couple of popular CJK fonts, such as MS Mincho, Meiryo, etc. --- libass/ass_font.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libass/ass_font.c b/libass/ass_font.c index 14790b4..0f53d8a 100644 --- a/libass/ass_font.c +++ b/libass/ass_font.c @@ -274,9 +274,6 @@ 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 && ch >= VERTICAL_LOWER_BOUND) { - *asc = FT_MulFix(face->max_advance_width, y_scale); - } return; } } -- cgit v1.2.3