[config] Add HB_OPTIMIZE_SIZE_MORE and enable in HB_TINY

Part of https://github.com/harfbuzz/harfbuzz/issues/4220
pull/4223/head
Behdad Esfahbod 2 years ago
parent da175c6935
commit 0e9ebf1062
  1. 2
      src/OT/Layout/GSUB/LigatureSet.hh
  2. 9
      src/hb-config.hh

@ -83,7 +83,9 @@ struct LigatureSet
unsigned int num_ligs = ligature.len;
#ifndef HB_NO_OT_LIGATURES_FAST_PATH
if (HB_OPTIMIZE_SIZE_VAL || num_ligs <= 2)
#endif
{
slow:
for (unsigned int i = 0; i < num_ligs; i++)

@ -44,15 +44,14 @@
#ifdef HB_TINY
#define HB_LEAN
#define HB_MINI
#define HB_OPTIMIZE_SIZE
#define HB_OPTIMIZE_SIZE_MORE
#define HB_MINIMIZE_MEMORY_USAGE
#define HB_NO_MT
#define HB_NO_UCD_UNASSIGNED
#ifndef NDEBUG
#define NDEBUG
#endif
#ifndef __OPTIMIZE_SIZE__
#define __OPTIMIZE_SIZE__
#endif
#endif
#ifdef HB_LEAN
@ -184,6 +183,10 @@
#define HB_NO_OT_SHAPER_MYANMAR_ZAWGYI
#endif
#ifdef HB_OPTIMIZE_SIZE_MORE
#define HB_NO_OT_LIGATURES_FAST_PATH
#endif
#ifdef HB_MINIMIZE_MEMORY_USAGE
#define HB_NO_GDEF_CACHE
#define HB_NO_OT_LAYOUT_LOOKUP_CACHE

Loading…
Cancel
Save