freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master bb4e049 1/4: [truetype] Make trickyness checks depend


From: Werner Lemberg
Subject: [freetype2] master bb4e049 1/4: [truetype] Make trickyness checks depend on TT_USE_BYTECODE_INTERPRETER.
Date: Mon, 8 Nov 2021 05:48:07 -0500 (EST)

branch: master
commit bb4e049abec0b4b1e333fa01b5d55483a316a3a9
Author: Werner Lemberg <wl@gnu.org>
Commit: Werner Lemberg <wl@gnu.org>

    [truetype] Make trickyness checks depend on TT_USE_BYTECODE_INTERPRETER.
    
    Based on a patch from metarutaiga (MR !106).
    
    * src/truetype/ttobjs.c (tt_skip_pdffont_random_tag,
    tt_check_trickyness_family, tt_synth_sfnt_checksum, tt_get_sfnt_checksum,
    tt_check_trickyness_sfnt_ids, tt_check_trickyness): Put functions into a
    `TT_USE_BYTECODE_INTERPRETER` block.
    (tt_face_init): Put trickyness checks into a `TT_USE_BYTECODE_INTERPRETER`
    block.
    
    Fixes #1111.
---
 src/truetype/ttobjs.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c
index 72a9650..95bb979 100644
--- a/src/truetype/ttobjs.c
+++ b/src/truetype/ttobjs.c
@@ -140,7 +140,6 @@
 
     return error;
   }
-#endif /* TT_USE_BYTECODE_INTERPRETER */
 
 
   /* The fonts embedded in PDF changes their family names
@@ -167,6 +166,7 @@
     return name + 7;
   }
 
+
   /* Compare the face with a list of well-known `tricky' fonts. */
   /* This list shall be expanded as we find more of them.       */
 
@@ -571,6 +571,8 @@
     return FALSE;
   }
 
+#endif /* TT_USE_BYTECODE_INTERPRETER */
+
 
   /* Check whether `.notdef' is the only glyph in the `loca' table. */
   static FT_Bool
@@ -716,8 +718,10 @@
     if ( error )
       goto Exit;
 
+#ifdef TT_USE_BYTECODE_INTERPRETER
     if ( tt_check_trickyness( ttface ) )
       ttface->face_flags |= FT_FACE_FLAG_TRICKY;
+#endif
 
     error = tt_face_load_hdmx( face, stream );
     if ( error )



reply via email to

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