summaryrefslogtreecommitdiffstats
path: root/libass/ass_fontselect.c
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2021-09-24 23:06:50 +0300
committerOleg Oshmyan <chortos@inbox.lv>2021-09-24 23:06:50 +0300
commit2b30c69ca3a0c0767dac4f3486c9182d2a79cb38 (patch)
tree3a7563f0142c48a980def777f20b956066f56703 /libass/ass_fontselect.c
parentb6240cdaef1b51a9add42a4bdfa72064297dbc7d (diff)
downloadlibass-2b30c69ca3a0c0767dac4f3486c9182d2a79cb38.tar.bz2
libass-2b30c69ca3a0c0767dac4f3486c9182d2a79cb38.tar.xz
ass_face_open: if only one face exists, use it without name check
At worst, even if this face isn't actually the desired one, this will just waste memory but won't break font selection. At best, this enables use of some broken TrueType fonts that lack valid PostScript names, as in https://github.com/libass/libass/issues/554. Core Text synthesizes a PostScript name, but FreeType doesn't, so every face has a NULL face_psname. Potentially, a font might also have a non-NULL face_psname that differs from Core Text's.
Diffstat (limited to 'libass/ass_fontselect.c')
0 files changed, 0 insertions, 0 deletions