summaryrefslogtreecommitdiffstats
path: root/libass/ass_fontselect.h
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2021-06-17 19:42:25 +0300
committerOleg Oshmyan <chortos@inbox.lv>2021-07-10 02:36:31 +0300
commit887e6cc50bfbe8fc354993682edc03c51203e2fc (patch)
tree5fccc501b40b24192d2573e88fe240703b7d9d98 /libass/ass_fontselect.h
parent72c4eaadb42c7692ebdd828b0903a907acad5d16 (diff)
downloadlibass-887e6cc50bfbe8fc354993682edc03c51203e2fc.tar.bz2
libass-887e6cc50bfbe8fc354993682edc03c51203e2fc.tar.xz
fontselect: automatically read metadata from font file if needed
Diffstat (limited to 'libass/ass_fontselect.h')
-rw-r--r--libass/ass_fontselect.h19
1 files changed, 3 insertions, 16 deletions
diff --git a/libass/ass_fontselect.h b/libass/ass_fontselect.h
index 50c1968..522c729 100644
--- a/libass/ass_fontselect.h
+++ b/libass/ass_fontselect.h
@@ -171,6 +171,9 @@ typedef struct font_provider_funcs {
/*
* Basic font metadata. All strings must be encoded with UTF-8.
* At minimum one family is required.
+ * If no family names are present, ass_font_provider_add_font
+ * will open the font file and read metadata from there,
+ * replacing everything but extended_family.
*/
struct ass_font_provider_meta_data {
/**
@@ -280,22 +283,6 @@ ass_font_provider_add_font(ASS_FontProvider *provider,
int index, void *data);
/**
- * \brief Read a font's parameters
- * \param lib a FT_Library to use (need not be the global one)
- * \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 fallback_family_name family name from outside source, used as last resort
- * \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,
- const char *fallback_family_name,
- ASS_FontProviderMetaData *info);
-
-/**
* \brief Free font provider and associated fonts.
* \param provider the font provider
*