From 7fe31859ca00374de38a6785e2aa60cccca585f8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 15 Apr 2026 12:48:05 -0600 Subject: [PATCH] [config] Drop HB_NO_SUBSET_LAYOUT from HB_LEAN HB_LEAN was dropping GSUB/GPOS out of the subset output, which turns subsetting Arabic / Indic / any complex-script font into a paperweight: the produced subset has no layout so it can't shape the text it was subsetted for. That's not really "lean", that's broken for most non-Latin use. Subset layout is load-bearing enough that it should stay in any HB_LEAN / HB_TINY build. Callers that truly don't want it can still #define HB_NO_SUBSET_LAYOUT themselves. meson test --no-rebuild is green (241/241). Co-Authored-By: Claude Opus 4.6 (1M context) --- src/hb-config.hh | 1 - 1 file changed, 1 deletion(-) diff --git a/src/hb-config.hh b/src/hb-config.hh index 3e4f91faf..62e0d2022 100644 --- a/src/hb-config.hh +++ b/src/hb-config.hh @@ -78,7 +78,6 @@ #define HB_NO_OT_FONT_GLYPH_NAMES #define HB_NO_SETLOCALE #define HB_NO_STYLE -#define HB_NO_SUBSET_LAYOUT #define HB_NO_VERTICAL #define HB_NO_VAR