From 6591a60a3d720f576352f8b4ef08362673d35cd0 Mon Sep 17 00:00:00 2001 From: Rodger Combs Date: Fri, 12 Oct 2018 00:35:18 -0500 Subject: fontselect: load actual weight instead of a guess, when possible --- libass/ass_fontselect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libass/ass_fontselect.c') diff --git a/libass/ass_fontselect.c b/libass/ass_fontselect.c index 87815b3..85ff0dc 100644 --- a/libass/ass_fontselect.c +++ b/libass/ass_fontselect.c @@ -810,7 +810,7 @@ get_font_info(FT_Library lib, FT_Face face, ASS_FontProviderMetaData *info) // calculate sensible slant and weight from style attributes slant = 110 * !!(face->style_flags & FT_STYLE_FLAG_ITALIC); - weight = 300 * !!(face->style_flags & FT_STYLE_FLAG_BOLD) + 400; + weight = ass_face_get_weight(face); // fill our struct info->slant = slant; -- cgit v1.2.3