summaryrefslogtreecommitdiffstats
path: root/libass/ass_fontselect.h
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2019-01-15 18:17:57 -0600
committerOleg Oshmyan <chortos@inbox.lv>2019-09-26 16:51:09 +0300
commit47e9e994358f17c776f20084d7b9750d3de79068 (patch)
tree44aa43c2fd18b44f54b0f8ec588bbf44d9ff9d9d /libass/ass_fontselect.h
parentd0852911b7a91ee7e6653958419009912a7ad3e8 (diff)
downloadlibass-47e9e994358f17c776f20084d7b9750d3de79068.tar.bz2
libass-47e9e994358f17c776f20084d7b9750d3de79068.tar.xz
fontselect: provide a way to use freetype to get font info
Diffstat (limited to 'libass/ass_fontselect.h')
-rw-r--r--libass/ass_fontselect.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libass/ass_fontselect.h b/libass/ass_fontselect.h
index 9d56b5b..a239a94 100644
--- a/libass/ass_fontselect.h
+++ b/libass/ass_fontselect.h
@@ -267,6 +267,20 @@ 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 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,
+ ASS_FontProviderMetaData *info);
+
+/**
* \brief Free font provider and associated fonts.
* \param provider the font provider
*