From 4a4f9f2b7a4174ede3b07bdf10a2db598a529fbe Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 26 Feb 2026 00:45:04 -0300 Subject: [PATCH] [raster] Treat symbol as container in SVG child-skip logic --- src/hb-raster-svg-render.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hb-raster-svg-render.cc b/src/hb-raster-svg-render.cc index efcc2d89a..5cb0c81ac 100644 --- a/src/hb-raster-svg-render.cc +++ b/src/hb-raster-svg-render.cc @@ -188,7 +188,8 @@ svg_render_container_element (hb_svg_render_context_t *ctx, } svg_render_element (ctx, parser, state); if (tok == SVG_TOKEN_OPEN_TAG && !child_tag.eq ("g") && - !child_tag.eq ("svg") && !child_tag.eq ("use")) + !child_tag.eq ("svg") && !child_tag.eq ("symbol") && + !child_tag.eq ("use")) { /* Skip children of non-container elements we don't handle. */ int skip_depth = 1;