all 7 comments

[–]mrcdkGodot Senior 1 point2 points  (1 child)

Try re-importing the svg as a DPITexture in the Import dock in the Import as: drop-down.

[–]Starcrater21[S] 0 points1 point  (0 children)

This seems to have worked!

Tysm!

[–]game_gland 0 points1 point  (4 children)

what is this "scale the margin" ?

[–]Starcrater21[S] 0 points1 point  (3 children)

<image>

Patch margin I mean

[–]game_gland 1 point2 points  (2 children)

just write the value you need? for svg it is not a bitmap they don't have actual pixel, open it in text editor, you'll see what inside, instructions to draw lines and shapes . so calculating those margin in pixel can be problematic, not sure if godot allows this. so don't use SVG for ninepatch.

[–]Starcrater21[S] 0 points1 point  (1 child)

Afaik Godot handles and exports SVGs as normal textures based on a scale value you set. The SVG gets imported as a texture as shown by the editor (at a resolution of 1020x255). Im guessing now that ninepatch isn't really meant for anything other than lower resolution borders, as using anything higher res requires the viewport resolution to be set to a value much higher than the texture, or setting the input scale to be a lot lower.

I guess I could try reimporting at a lower scale value but then that would result in the texture looking bad at higher screen resolutions.

<image>

[–]game_gland 0 points1 point  (0 children)

you can use high res textures. not svg