[Buildroot] [PATCH 6/8] package/sdl3_ttf: build plutosvg support when available
Alsey Coleman Miller <[email protected]>
| Newsgroups | net.busybox.buildroot |
|---|---|
| Message-ID | <[email protected]> |
Colour emoji fonts store their glyphs as SVG, which SDL3_ttf renders through plutosvg. Without it those glyphs are skipped and the rest of the font still renders. plutosvg is packaged in the swift-linux ports tree rather than in Buildroot, so BR2_PACKAGE_PLUTOSVG is undefined on a plain Buildroot and the branch selects SDLTTF_PLUTOSVG=OFF - the behaviour before this commit. Not for upstream until plutosvg and plutovg are packaged there. Signed-off-by: Alsey Coleman Miller <[email protected]> --- package/sdl3_ttf/sdl3_ttf.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package/sdl3_ttf/sdl3_ttf.mk b/package/sdl3_ttf/sdl3_ttf.mk index 130e07746e..660661a5b7 100644 --- a/package/sdl3_ttf/sdl3_ttf.mk +++ b/package/sdl3_ttf/sdl3_ttf.mk @@ -26,4 +26,14 @@ else SDL3_TTF_CONF_OPTS += -DSDLTTF_HARFBUZZ=OFF endif +# plutosvg renders the SVG glyphs in a colour emoji font, through the +# FreeType OpenType-SVG hooks. Without it those glyphs are skipped and the +# rest of the font still renders. +ifeq ($(BR2_PACKAGE_PLUTOSVG),y) +SDL3_TTF_DEPENDENCIES += plutosvg +SDL3_TTF_CONF_OPTS += -DSDLTTF_PLUTOSVG=ON +else +SDL3_TTF_CONF_OPTS += -DSDLTTF_PLUTOSVG=OFF +endif + $(eval $(cmake-package)) -- 2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot