]> granicus.if.org Git - libass/commit
fontselect: fix match_fonts semantics
authorGrigori Goronzy <greg@chown.ath.cx>
Wed, 2 Sep 2015 22:04:59 +0000 (00:04 +0200)
committerGrigori Goronzy <greg@chown.ath.cx>
Mon, 7 Sep 2015 00:14:43 +0000 (02:14 +0200)
commit59e266bd41afd7f022ed293b9f61afa3481e0321
tree9b49d2fae01dba1e6fba03789b776056524cdc28
parent6c8348a598cd79874007e233b6f0f409185093b1
fontselect: fix match_fonts semantics

We don't want to add fonts multiple times, so call match_fonts lazily,
i.e. only after selecting a font with a certain name failed. Since
font matching interacts with glyph coverage checks, add a simple
mechanism to determine whether matching failed because of name or
glyph coverage. Additionally make sure to handle substitutions before
any calls to match_fonts; this only correctly deals with single-name
substitutions, though.
libass/ass_fontselect.c