Skip to content

Commit

Permalink
[autofit] Fix synchronization mistake between FreeType and ttfautohint.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lemzwerg committed Sep 5, 2023
1 parent ad20173 commit 4590392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autofit/aflatin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++ )
Expand Down

0 comments on commit 4590392

Please sign in to comment.