freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master 000b26a30: * src/sfnt/ttpost.c (load_format_20): Rewo


From: Werner Lemberg
Subject: [freetype2] master 000b26a30: * src/sfnt/ttpost.c (load_format_20): Rework tracing.
Date: Wed, 30 Aug 2023 23:05:38 -0400 (EDT)

branch: master
commit 000b26a30fe2229e6763752adfe1a7dab0ef21de
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * src/sfnt/ttpost.c (load_format_20): Rework tracing.
---
 src/sfnt/ttpost.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/sfnt/ttpost.c b/src/sfnt/ttpost.c
index 03fd3d663..bd0e24370 100644
--- a/src/sfnt/ttpost.c
+++ b/src/sfnt/ttpost.c
@@ -224,10 +224,9 @@
         FT_UInt  len = strings[p];
 
 
-        /* accept but report names longer than the AGL max */
-        FT_TRACE4(( len < 40U ? "" 
-                              : "load_format_20: %u-byte name found\n",
-                                len ));
+        /* all names in Adobe Glyph List are shorter than 40 characters */
+        if ( len >= 40U )
+          FT_TRACE4(( "load_format_20: unusual %u-char name found\n", len ));
 
         strings[p]      = 0;
         name_strings[n] = strings + p + 1;



reply via email to

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