diff options
author | Grigori Goronzy <greg@chown.ath.cx> | 2015-06-13 16:29:10 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@chown.ath.cx> | 2015-07-10 10:43:16 +0200 |
commit | 4f206a3fbe6150ce9d547952db7b93a884e024ab (patch) | |
tree | b05b1c000b0267768a2b9dfa90c34098a863a5f2 /libass/ass_utils.h | |
parent | 832d57bf22426982bce1ffbf69121afb887b1cb6 (diff) | |
download | libass-4f206a3fbe6150ce9d547952db7b93a884e024ab.tar.bz2 libass-4f206a3fbe6150ce9d547952db7b93a884e024ab.tar.xz |
directwrite: multiple improvements to font scanning
There were various issues with font scanning. This addresses the following:
- Synthesized font faces (bold/oblique) were added to the list. Just skip
those, this is handled internally by libass.
- Use the win32 font family names, if available. Traditionally, Windows
groups font families in a different way, so that the number of
variants is small (<= 4). With this, Arial Narrow and Arial Black
appear as a separate family, which is what we want.
- Full names are not mandatory. Correctly handle the case that there
are no full names.
- Don't use the bogus LOCALE_NAME_MAX_LENGTH constant to determine the
size of the name buffer. Names can be almost arbitrarily long.
Handle names up to 256 characters correctly and truncate longer names.
Diffstat (limited to 'libass/ass_utils.h')
0 files changed, 0 insertions, 0 deletions