skanaar / nomnoml

The sassy UML diagram renderer
https://www.nomnoml.com
MIT License
2.7k stars 209 forks source link

large margins for russian text #224

Closed idimix closed 3 weeks ago

idimix commented 3 months ago

when using a long sentence in Russian, the margins around the edges will be very large Screenshot_20240612_164119

skanaar commented 3 months ago

Is this when generating SVG output? Then a "rendering context" is not available so we cannot measure the text dimensions. So the boxes are larger to be on the safe side.

But I can have a look, because this looks worse than expected.

skanaar commented 3 weeks ago

Closing this as it only affects the svg renderer. The latin alphabet has hard coded widths for better support. If there is high demand I could add other alphabets as well.