freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] wl/sbix 06727a525 1/5: * include/freetype/freetype.h (FT_LOA


From: Werner Lemberg
Subject: [freetype2] wl/sbix 06727a525 1/5: * include/freetype/freetype.h (FT_LOAD_SBITS_ONLY): Tag macro as public.
Date: Fri, 25 Mar 2022 02:48:13 -0400 (EDT)

branch: wl/sbix
commit 06727a5257b8d0f95b9d0766191dad0141915c50
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 39dae3873..0bd06f1b8 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 )
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]