summaryrefslogtreecommitdiffstats
path: root/libass/ass_coretext.c
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@chown.ath.cx>2015-06-09 01:20:28 +0200
committerGrigori Goronzy <greg@chown.ath.cx>2015-07-10 10:42:41 +0200
commitfaa5203fe181e50ce1377f09e451e90906ffe9e3 (patch)
tree0bf4cbd1fdf68aece8c36b200ffd6efefbcb8537 /libass/ass_coretext.c
parent9f37df904f9a68b4db012c88712791fb10d94189 (diff)
downloadlibass-faa5203fe181e50ce1377f09e451e90906ffe9e3.tar.bz2
libass-faa5203fe181e50ce1377f09e451e90906ffe9e3.tar.xz
fontselect: add fallback and substitution callbacks
Add callbacks to introduce more sane fallback handling and font alias substitutions.
Diffstat (limited to 'libass/ass_coretext.c')
-rw-r--r--libass/ass_coretext.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libass/ass_coretext.c b/libass/ass_coretext.c
index 5347541..66277a5 100644
--- a/libass/ass_coretext.c
+++ b/libass/ass_coretext.c
@@ -270,10 +270,12 @@ static ASS_FontProviderFuncs coretext_callbacks = {
destroy_font,
NULL,
#if CT_FONTS_EAGER_LOAD
- NULL
+ NULL,
#else
- match_fonts
+ match_fonts,
#endif
+ NULL,
+ NULL
};
ASS_FontProvider *