From bd645e5573a435e7cd4dfbce0c0a6f9334b8cfa1 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 1 Apr 2026 14:58:49 -0600 Subject: [PATCH] [config] Move HB_NO_CFF from HB_LEAN to HB_NO_DRAW closure CFF parsing requires the draw infrastructure, so it belongs in the HB_NO_DRAW closure rather than being unconditionally disabled by HB_LEAN. This allows HB_LEAN and HB_TINY builds that re-enable draw (via config-override.h) to also get CFF support without explicitly undefining HB_NO_CFF. Assisted-by: Claude --- src/hb-config.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-config.hh b/src/hb-config.hh index 67c577a0e..4c9c2d68a 100644 --- a/src/hb-config.hh +++ b/src/hb-config.hh @@ -61,7 +61,6 @@ #define HB_NO_BUFFER_SERIALIZE #define HB_NO_BUFFER_VERIFY #define HB_NO_BITMAP -#define HB_NO_CFF #define HB_NO_COLOR #define HB_NO_DRAW #define HB_NO_ERRNO @@ -139,6 +138,7 @@ #endif #ifdef HB_NO_DRAW +#define HB_NO_CFF #define HB_NO_OUTLINE #define HB_NO_PAINT #endif