From ad201739425accfffd181797bc808dc78fa89d5c Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Mon, 4 Sep 2023 19:22:43 +0200 Subject: [PATCH] [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;