summaryrefslogtreecommitdiffstats
path: root/libass/ass_fontselect.h
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2021-03-27 04:11:07 +0200
committerOleg Oshmyan <chortos@inbox.lv>2021-04-29 03:18:15 +0300
commit2d2be3237d3422cd9ef7beebd1134b7cc5b3b474 (patch)
tree5882683751c0df0018fca57a551810ed02b3cb2a /libass/ass_fontselect.h
parentb4b744244799d9c3c81df809313e6a85347f1bd0 (diff)
downloadlibass-2d2be3237d3422cd9ef7beebd1134b7cc5b3b474.tar.bz2
libass-2d2be3237d3422cd9ef7beebd1134b7cc5b3b474.tar.xz
fontselect: coretext: ask Core Text for family name as last resort
If a font contains no recognized Microsoft-platform family names, use the family name reported by Core Text. Skip FreeType's face->family_name because it is an ASCII bastardization of a family name and may not exist at all.
Diffstat (limited to 'libass/ass_fontselect.h')
-rw-r--r--libass/ass_fontselect.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libass/ass_fontselect.h b/libass/ass_fontselect.h
index 2cb5672..d029b0b 100644
--- a/libass/ass_fontselect.h
+++ b/libass/ass_fontselect.h
@@ -273,12 +273,14 @@ ass_font_provider_add_font(ASS_FontProvider *provider,
* \param path the path to the font file to read
* \param postscript_name the PS name of the specific face to read (set either this or index)
* \param index the face index to read, or -1 if not applicable
+ * \param require_family_name whether to try a fallback family name and fail if none found
* \param info the struct to store results into
* \return success
*
*/
bool ass_get_font_info(ASS_Library *lib, FT_Library ftlib, const char *path,
const char *postscript_name, int index,
+ bool require_family_name,
ASS_FontProviderMetaData *info);
/**