GodSVG
GodSVG copied to clipboard
Potential to improve scaled UI appearance
Godot's default rendering settings for fonts and icons is not the best for applications if they want to support HiDPI / UI Scaling.
For fonts, I would recommend turning on Multichannel Signed Distance Fields for font rendering. Some fonts however will create artifacts when used with MSDF, which requires trial and error with the Pixel Range and Size settings, or replacing with a font that does not have issues. The default Mono font that GodSVG uses (JetBrains Mono) is one font that has bad rendering with MSDF no matter how hard you try to correct it, so in this case it would require being replaced with another.
For icons, you could import their SVGs with their scale set to above 1, however this would cause the buttons and related Control nodes to resize to match.
You can fix this by setting max_icon_width
in the theme settings for Button and it's derived classes. Note that this will not work currently for CheckBox and CheckButton, but it has been fixed for 4.3.
There are a few places where GodSVG manually draws using draw_texture(). If used with upscaled SVGs as is, these would also break.
Changing them with draw_texture_rect(tex, Rect2(Vector2.ZERO, [original texture size], false)
would fix the issue.
I had already made all these changes on my local copy of the project to test if it would work before submitting this request. I won't be submitting a PR though, as I have done them in a very straight way with no possibility of customizing it.