[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] wl/sbix 65c01154e 1/2: * include/freetype/freetype.h (FT_LOA
From: |
Werner Lemberg |
Subject: |
[freetype2] wl/sbix 65c01154e 1/2: * include/freetype/freetype.h (FT_LOAD_SBITS_ONLY): Tag macro as public. |
Date: |
Wed, 9 Feb 2022 12:52:15 -0500 (EST) |
branch: wl/sbix
commit 65c01154efd3fc23da25fc8bdf8dc6e8356bb054
Author: Werner Lemberg <wl@gnu.org>
Commit: Werner Lemberg <wl@gnu.org>
* include/freetype/freetype.h (FT_LOAD_SBITS_ONLY): Tag macro as public.
---
include/freetype/freetype.h | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index 0489c8448..72a243c79 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -227,6 +227,7 @@ FT_BEGIN_HEADER
* FT_LOAD_NO_SCALE
* FT_LOAD_NO_HINTING
* FT_LOAD_NO_BITMAP
+ * FT_LOAD_SBITS_ONLY
* FT_LOAD_NO_AUTOHINT
* FT_LOAD_COLOR
*
@@ -2976,6 +2977,15 @@ FT_BEGIN_HEADER
*
* @FT_LOAD_NO_SCALE always sets this flag.
*
+ * FT_LOAD_SBITS_ONLY ::
+ * [Since 2.12] This is the opposite of @FT_LOAD_NO_BITMAP, more or
+ * less: @FT_Load_Glyph returns `FT_Err_Invalid_Argument` if the face
+ * contains a bitmap strike for the given size (or the strike selected
+ * by @FT_Select_Size) but there is no glyph in the strike.
+ *
+ * Note that this load flag was part of FreeType since version 2.0.6
+ * but previously tagged as internal.
+ *
* FT_LOAD_VERTICAL_LAYOUT ::
* Load the glyph for vertical text layout. In particular, the
* `advance` value in the @FT_GlyphSlotRec structure is set to the
@@ -3120,6 +3130,7 @@ FT_BEGIN_HEADER
#define FT_LOAD_IGNORE_TRANSFORM ( 1L << 11 )
#define FT_LOAD_MONOCHROME ( 1L << 12 )
#define FT_LOAD_LINEAR_DESIGN ( 1L << 13 )
+#define FT_LOAD_SBITS_ONLY ( 1L << 14 )
#define FT_LOAD_NO_AUTOHINT ( 1L << 15 )
/* Bits 16-19 are used by `FT_LOAD_TARGET_` */
#define FT_LOAD_COLOR ( 1L << 20 )
@@ -3130,7 +3141,6 @@ FT_BEGIN_HEADER
/* used internally only by certain font drivers */
#define FT_LOAD_ADVANCE_ONLY ( 1L << 8 )
-#define FT_LOAD_SBITS_ONLY ( 1L << 14 )
#define FT_LOAD_SVG_ONLY ( 1L << 23 )
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] wl/sbix 65c01154e 1/2: * include/freetype/freetype.h (FT_LOAD_SBITS_ONLY): Tag macro as public.,
Werner Lemberg <=