freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master ad2017394: [autofit] Fix typos.


From: Werner Lemberg
Subject: [freetype2] master ad2017394: [autofit] Fix typos.
Date: Mon, 4 Sep 2023 13:27:17 -0400 (EDT)

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

    [autofit] Fix typos.
    
    This also reduces the used heap size by a large factor.
    
    From Behdad.
    
    * src/autofit/afcjk.h (AF_CJKAxisRec): Use `AF_BLUE_STRINGSET_MAX_LEN`.
    * src/autofit/aflatin.h (AF_LatinAxisRec): Ditto.
---
 src/autofit/afcjk.h   | 2 +-
 src/autofit/aflatin.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/autofit/afcjk.h b/src/autofit/afcjk.h
index f380ef6e0..20dad4d72 100644
--- a/src/autofit/afcjk.h
+++ b/src/autofit/afcjk.h
@@ -84,7 +84,7 @@ FT_BEGIN_HEADER
     /* used for horizontal metrics too for CJK */
     FT_Bool        control_overshoot;
     FT_UInt        blue_count;
-    AF_CJKBlueRec  blues[AF_BLUE_STRINGSET_MAX];
+    AF_CJKBlueRec  blues[AF_BLUE_STRINGSET_MAX_LEN];
 
     FT_Fixed       org_scale;
     FT_Pos         org_delta;
diff --git a/src/autofit/aflatin.h b/src/autofit/aflatin.h
index 31aa91d3b..22435d5a0 100644
--- a/src/autofit/aflatin.h
+++ b/src/autofit/aflatin.h
@@ -98,7 +98,7 @@ FT_BEGIN_HEADER
 
     /* ignored for horizontal metrics */
     FT_UInt          blue_count;
-    AF_LatinBlueRec  blues[AF_BLUE_STRINGSET_MAX];
+    AF_LatinBlueRec  blues[AF_BLUE_STRINGSET_MAX_LEN];
 
     FT_Fixed         org_scale;
     FT_Pos           org_delta;



reply via email to

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