summaryrefslogtreecommitdiff
path: root/src/sfnt
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2022-02-09 07:31:56 +0100
committerWerner Lemberg <wl@gnu.org>2022-03-25 06:37:41 +0000
commit907715a6a214001db7504983f6cf2a48e8b33053 (patch)
tree874025b1bde5abdf562ecabda1e9c4bda83ef015 /src/sfnt
parent06727a5257b8d0f95b9d0766191dad0141915c50 (diff)
downloadfreetype2-907715a6a214001db7504983f6cf2a48e8b33053.tar.gz
Add `FT_FACE_FLAG_SBIX` and `FT_HAS_SBIX`.
Fonts with 'sbix' tables need special handling by the application. * include/freetype/freetype.h (FT_FACE_FLAG_SBIX, FT_HAS_SBIX): New macros. * src/sfnt/sfobjs.c (sfnt_load_face): Set `FT_FACE_FLAG_SBIX` if 'sbix' table is present.
Diffstat (limited to 'src/sfnt')
-rw-r--r--src/sfnt/sfobjs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c
index 9771c35df..008962b2f 100644
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -1058,8 +1058,13 @@
flags |= FT_FACE_FLAG_COLOR; /* color glyphs */
if ( has_outline == TRUE )
+ {
flags |= FT_FACE_FLAG_SCALABLE; /* scalable outlines */
+ if ( face->sbit_table_type == TT_SBIT_TABLE_TYPE_SBIX )
+ flags |= FT_FACE_FLAG_SBIX; /* and 'sbix' bitmaps */
+ }
+
/* The sfnt driver only supports bitmap fonts natively, thus we */
/* don't set FT_FACE_FLAG_HINTER. */
flags |= FT_FACE_FLAG_SFNT | /* SFNT file format */