diff options
-rw-r--r-- | libass/ass_fontselect.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |