]> granicus.if.org Git - libass/commit
Use TrueType font weight scale
authorGrigori Goronzy <greg@chown.ath.cx>
Thu, 18 Aug 2011 23:16:24 +0000 (01:16 +0200)
committerGrigori Goronzy <greg@chown.ath.cx>
Fri, 10 Jul 2015 08:42:40 +0000 (10:42 +0200)
commit93c4e8ebf3dea5c9e1978f78a33cb961d6a1aaf7
tree10adc9f34146192dafdf6ab158f4022ed2acff3f
parent986605e29d9d8c7a0d0aeac8f53fc556097334d6
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.
libass/ass_font.c
libass/ass_fontconfig.c
libass/ass_fontselect.c
libass/ass_fontselect.h
libass/ass_parse.c