In harfbuzzjs repo, we build harfbuzz-subset.wasm with -DHB_TINY and the following config override files:
#undef HB_NO_CFF
#undef HB_NO_OT_FONT_CFF
#undef HB_NO_SUBSET_CFF
#undef HB_NO_SUBSET_LAYOUT
#undef HB_NO_VAR
#undef HB_NO_STYLE
But the build fails with:
wasm-ld: error: /var/folders/kg/rc0yqzr55d54sf3ygnqlbt8r0000gp/T/emscripten_temp_fqfj8ui5/harfbuzz-subset.o: undefined symbol: OT::cff2::accelerator_t::get_extents(hb_font_t*, unsigned int, hb_glyph_extents_t*) const
Unless we add to the config override:
In harfbuzzjs repo, we build
harfbuzz-subset.wasmwith-DHB_TINYand the following config override files:But the build fails with:
Unless we add to the config override: