summaryrefslogtreecommitdiffstats
path: root/libass/ass_font.c
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@chown.ath.cx>2011-08-19 01:16:24 +0200
committerGrigori Goronzy <greg@chown.ath.cx>2015-07-10 10:42:40 +0200
commit93c4e8ebf3dea5c9e1978f78a33cb961d6a1aaf7 (patch)
tree10adc9f34146192dafdf6ab158f4022ed2acff3f /libass/ass_font.c
parent986605e29d9d8c7a0d0aeac8f53fc556097334d6 (diff)
downloadlibass-93c4e8ebf3dea5c9e1978f78a33cb961d6a1aaf7.tar.bz2
libass-93c4e8ebf3dea5c9e1978f78a33cb961d6a1aaf7.tar.xz
Use TrueType font weight scale
fontconfig uses an unusual scale from 0-215 for the font weight. It looks like it is somewhat derived from the typographic scale some font families use, but is still rather nonstandard. Nowadays the TrueType scale from 100-900 seems to be standard. CSS uses it, for example. However, most importantly, VSFilter also uses the TrueType scale. So let's use it in libass, too.
Diffstat (limited to 'libass/ass_font.c')
-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 7170e10..a6d1b5b 100644
--- a/libass/ass_font.c
+++ b/libass/ass_font.c
@@ -601,7 +601,7 @@ FT_Glyph ass_font_get_glyph(ASS_Font *font, uint32_t ch, int face_index,
}
if (!(face->style_flags & FT_STYLE_FLAG_BOLD) &&
- (font->desc.bold > 80)) {
+ (font->desc.bold > 400)) {
ass_glyph_embolden(face->glyph);
}
error = FT_Get_Glyph(face->glyph, &glyph);