From 45903920b984540bb629bc89f4c010159c23a89a Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Tue, 5 Sep 2023 08:07:17 +0200 Subject: [PATCH] [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++ )