summaryrefslogtreecommitdiff
path: root/include/freetype/ftparams.h
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2022-03-19 18:51:34 +0100
committerWerner Lemberg <wl@gnu.org>2022-03-25 06:37:41 +0000
commit1949a7ec3a71572c24fe00e879b2a9b2b54f773d (patch)
tree0c7b79d771e14a916ec1efb70db4ed0d1dabe5c6 /include/freetype/ftparams.h
parentac4c1ebf7edb3c142c5c4ad9b3345d95325750fd (diff)
downloadfreetype2-1949a7ec3a71572c24fe00e879b2a9b2b54f773d.tar.gz
Add `FT_PARAM_TAG_IGNORE_SBIX`.
This is another bit to handle 'sbix' tables as described in the OpenType specification. * include/freetype/ftparams.h (FT_PARAM_TAG_IGNORE_SBIX): New macro. * src/sfnt/sfobjc.c (is_apple_sbix): Rename to... (has_sbix): ... this. Check for more sbit tables. Handle `FT_PARAM_TAG_IGNORE_SBIX` to eventually control `has_sbix`. Only call sbit table loader if an sbit table is present.
Diffstat (limited to 'include/freetype/ftparams.h')
-rw-r--r--include/freetype/ftparams.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/freetype/ftparams.h b/include/freetype/ftparams.h
index 06a60efad..72080f396 100644
--- a/include/freetype/ftparams.h
+++ b/include/freetype/ftparams.h
@@ -115,6 +115,21 @@ FT_BEGIN_HEADER
/**************************************************************************
*
* @enum:
+ * FT_PARAM_TAG_IGNORE_SBIX
+ *
+ * @description:
+ * A tag for @FT_Parameter to make @FT_Open_Face ignore an 'sbix' table
+ * while loading a font. Use this if @FT_FACE_FLAG_SBIX is set and you
+ * want to access the outline glyphs in the font.
+ *
+ */
+#define FT_PARAM_TAG_IGNORE_SBIX \
+ FT_MAKE_TAG( 'i', 's', 'b', 'x' )
+
+
+ /**************************************************************************
+ *
+ * @enum:
* FT_PARAM_TAG_LCD_FILTER_WEIGHTS
*
* @description: