freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master 45903920b: [autofit] Fix synchronization mistake betw


From: Werner Lemberg
Subject: [freetype2] master 45903920b: [autofit] Fix synchronization mistake between FreeType and ttfautohint.
Date: Tue, 5 Sep 2023 02:09:51 -0400 (EDT)

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

    [autofit] Fix synchronization mistake between FreeType and ttfautohint.
    
    Found by Behdad.
    
    * src/autofit/aflatin.c (af_latin_metrics_init_blues): Fix array size of
    `blue_sorted`: FreeType doesn't have artificial blue zones.
---
 src/autofit/aflatin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c
index b86367aa9..80b1ad7d6 100644
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -981,7 +981,7 @@
       /* `ref' and `shoot' values of two blue zones must not overlap */
 
       FT_UInt       i;
-      AF_LatinBlue  blue_sorted[AF_BLUE_STRINGSET_MAX_LEN + 2];
+      AF_LatinBlue  blue_sorted[AF_BLUE_STRINGSET_MAX_LEN];
 
 
       for ( i = 0; i < axis->blue_count; i++ )



reply via email to

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