u/Fabrix10

Image 1 — Is there a way to get squared edges instead of rounded edges for a Label outline?
Image 2 — Is there a way to get squared edges instead of rounded edges for a Label outline?
Image 3 — Is there a way to get squared edges instead of rounded edges for a Label outline?
▲ 98 r/godot

Is there a way to get squared edges instead of rounded edges for a Label outline?

Hello, I was trying to create a Label using a pixel font(Jersey 10) and while the font renders correctly I'm struggling to make the outline for the text also squared.

When I add the outline from LabelSettings or Theme Override, I always get a rounded outline and with a font like this I feel like it's not that good looking.

I've tried disabling font supersampling and setting texture filter to nearest but that doesn't change anything.

EDIT(solved):

Thanks to u/Geralt31 suggestion, I've finally found a solution to this problem that ironically also fixed some problems I've had with the scaling of the font on very low sizes!

I've converted the font to a bitmap font using a site I've found called Snowb

Just upload the font, set the font size on the left, and if you want the outline, on the right select stroke, set a width and choose the type of line you want to create

In case you are also using a pixel art font, you need to set on the left the sharp option to 100%

After that on the top left there's the export button, choose the name and as export type choose the first option(BMFont TEXT), after that it will download a zip with two files(a PNG an a FNT)

Drop the two files inside the godot project, use the .fnt as the fontfile for the label and enjoy!

There's also a solution using multiple shadows that it's easier to setup, but at the time of editing this post doesn't work correctly for smaller sizes because of a bug in the engine(found by u/Key-Light4098).

Here's a link to the issue if anyone wants to check it!

Hope this post will help any person that encounters this problem and thanks to everyone that helped with this ^^

u/Fabrix10 — 18 days ago