summaryrefslogtreecommitdiffstats
path: root/libass/ass_fontselect.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-01 14:08:47 +0200
committerwm4 <wm4@nowhere>2015-09-01 14:08:47 +0200
commit888c644420b138875bf5e9f956d926b0be784eae (patch)
tree6dd0a1184f3239e4dab7188995061d96da9fd8b0 /libass/ass_fontselect.h
parent72f751e3a5693ed2b7e935cb6c31ce18eed8d7b0 (diff)
downloadlibass-888c644420b138875bf5e9f956d926b0be784eae.tar.bz2
libass-888c644420b138875bf5e9f956d926b0be784eae.tar.xz
fontselect: use designated initializers
Tired of matching the names and order of the callbacks in my head. While we're at it, also give some of the callbacks better names.
Diffstat (limited to 'libass/ass_fontselect.h')
-rw-r--r--libass/ass_fontselect.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/libass/ass_fontselect.h b/libass/ass_fontselect.h
index 2c03a16..f420935 100644
--- a/libass/ass_fontselect.h
+++ b/libass/ass_fontselect.h
@@ -122,23 +122,23 @@ typedef void (*SubstituteFontFunc)(void *priv, const char *name,
* Note that fontselect uses the font provider set as default to determine
* fallbacks.
*
- * \param font_priv font private data
+ * \param priv font provider private data
* \param codepoint Unicode codepoint (UTF-32)
* \return output font family, allocated with malloc(), must be freed
* by caller.
*/
-typedef char *(*GetFallbackFunc)(void *font_priv,
+typedef char *(*GetFallbackFunc)(void *priv,
ASS_FontProviderMetaData *meta,
uint32_t codepoint);
typedef struct font_provider_funcs {
- GetDataFunc get_data; /* optional/mandatory */
- CheckGlyphFunc check_glyph; /* mandatory */
- DestroyFontFunc destroy_font; /* optional */
- DestroyProviderFunc destroy_provider; /* optional */
- MatchFontsFunc match_fonts; /* optional */
- SubstituteFontFunc subst_font; /* optional */
- GetFallbackFunc fallback_font; /* optional */
+ GetDataFunc get_data; /* optional/mandatory */
+ CheckGlyphFunc check_glyph; /* mandatory */
+ DestroyFontFunc destroy_font; /* optional */
+ DestroyProviderFunc destroy_provider; /* optional */
+ MatchFontsFunc match_fonts; /* optional */
+ SubstituteFontFunc get_substitutions; /* optional */
+ GetFallbackFunc get_fallback; /* optional */
} ASS_FontProviderFuncs;
/*