summaryrefslogtreecommitdiff
path: root/include/freetype/ftmodapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/freetype/ftmodapi.h')
-rw-r--r--include/freetype/ftmodapi.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/freetype/ftmodapi.h b/include/freetype/ftmodapi.h
index f4246dcbd..8b0bbe37b 100644
--- a/include/freetype/ftmodapi.h
+++ b/include/freetype/ftmodapi.h
@@ -88,6 +88,7 @@ FT_BEGIN_HEADER
* FT_Remove_Module
* FT_Add_Default_Modules
*
+ * FT_FACE_DRIVER_NAME
* FT_Property_Set
* FT_Property_Get
* FT_Set_Default_Properties
@@ -331,6 +332,23 @@ FT_BEGIN_HEADER
/**************************************************************************
+   *
+   * @macro:
+   *   FT_FACE_DRIVER_NAME
+   *
+   * @description:
+   *   A macro that retrieves the name of a font driver from a face object.
+   *
+   * @note:
+   *   The font driver name is a valid `module_name` for @FT_Property_Set
+ * and @FT_Property_Get. This is not the same as @FT_Get_Font_Format.
+   *
+   */
+#define FT_FACE_DRIVER_NAME( face ) \
+          ( ( *(FT_Module_Class**)( ( face )->driver ) )->module_name )
+
+
+ /**************************************************************************
*
* @function:
* FT_Property_Set