Skip to content

Building fails with HB_TINY and undefining HB_NO_CFF without undefining HB_NO_DRAW #5955

@khaledhosny

Description

@khaledhosny

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:

#undef HB_NO_DRAW

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions