From dc126e9842df816530d4534a6a30c73b28967c05 Mon Sep 17 00:00:00 2001 From: Dmitry Sapozhnikov <11535558+o-sdn-o@users.noreply.github.com> Date: Tue, 24 Mar 2026 23:42:21 +0500 Subject: [PATCH 1/2] #571 WIP: Fix SVG glyph transformation --- src/netxs/desktopio/gui.hpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/netxs/desktopio/gui.hpp b/src/netxs/desktopio/gui.hpp index 15afd101fb..b013160e3b 100644 --- a/src/netxs/desktopio/gui.hpp +++ b/src/netxs/desktopio/gui.hpp @@ -2039,13 +2039,7 @@ namespace netxs::gui { element = document->documentElement(); } - auto bb = element.getBoundingBox(); - auto scale = std::min((fp32)glyph.b_box.size.x / bb.w, (fp32)glyph.b_box.size.y / bb.h); - auto tx = -bb.x * scale; - auto ty = -bb.y * scale; - auto matrix = lunasvg::Matrix{ scale, 0, 0, scale, tx, ty }; - auto bitmap = lunasvg::Bitmap{ glyph.b_box.size.x, glyph.b_box.size.y }; - element.render(bitmap, matrix); + auto bitmap = element.renderToBitmap(glyph.b_box.size.x, glyph.b_box.size.y); draw_svg_to_canvas(canvas, bitmap, glyph.b_box); } } From 8279cbdbe199ef12e0c75d33077f487a34b9b7d1 Mon Sep 17 00:00:00 2001 From: Dmitry Sapozhnikov <11535558+o-sdn-o@users.noreply.github.com> Date: Wed, 25 Mar 2026 00:33:44 +0500 Subject: [PATCH 2/2] v2026.03.25 --- src/netxs/desktopio/application.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netxs/desktopio/application.hpp b/src/netxs/desktopio/application.hpp index a206a15bdf..33b338e9f5 100644 --- a/src/netxs/desktopio/application.hpp +++ b/src/netxs/desktopio/application.hpp @@ -22,7 +22,7 @@ namespace netxs::app namespace netxs::app::shared { - static const auto version = "v2026.03.24"; + static const auto version = "v2026.03.25"; static const auto repository = "https://github.com/directvt/vtm"; static const auto usr_config = "~/.config/vtm/settings.xml"s; static const auto sys_config = "/etc/vtm/settings.xml"s;