chore: smarter zoom out raster method, simpler svg

This commit is contained in:
2025-07-10 12:37:45 -05:00
parent 32b55c918c
commit 4cf4b626de
2 changed files with 1 additions and 3 deletions

View File

@@ -1,5 +1,3 @@
use std::default;
use resvg::usvg::fontdb; use resvg::usvg::fontdb;
use resvg::{tiny_skia, usvg}; use resvg::{tiny_skia, usvg};

View File

@@ -1,6 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" font-family="Roboto Mono" <svg xmlns="http://www.w3.org/2000/svg" font-family="Roboto Mono"
font-size="27"> font-size="27">
<text x="8" y="27" text-anchor="start"> <text text-anchor="start" dy="24">
{{ text }} {{ text }}
</text> </text>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 167 B

After

Width:  |  Height:  |  Size: 162 B