0 votes

I am currently working on a simple dialoguebox to display texts. I chose a label to show the currently speaking npc name and then thought it would be a good idea to add a richtextlabel beneath it, but it gives me nothing but trouble.
Problem 1:
I added a new dynamic font (pixel art style) like this:
Custom Fonts, select Normal Font, click on empty, choose newDynamicfont and load my font file
My font appears, but it is blurry af and up until now I could not find a way to set things right.

Problem 2:
The distance between each line is pretty big. Is there any way to make it smaller? I could not find one.

Here you find a picture of my font/ richtextlabel problem. It looks awfull and even after going through all of the options, I couldn't find a way to fix this.
https://ibb.co/Cz98jcF
I appreciate any hints given.

in Engine by (55 points)

1 Answer

+1 vote
Best answer

The blurry font problem is something I ran into as well. I was able to make it mostly work at some point in Godot 2.x, but then it broke again in a different way, like you have currently. It still remains to be fixed, see https://github.com/godotengine/godot/issues/8022
However it might only affect distance-field fonts (see the link for details), I never tried with other kinds of fonts.

You can customize line separation in the Custom Constants section in the inspector. Check the Line Separation property and set either a positive or negative pixel amount.

Alternatively there are Extra Spacing options you can tweak in your DynamicFont resource.

by (27,902 points)
selected by

Well, then I will have to find another pixel art font which works for me. Thanks for letting me know.

And here I thought I had thoroughly checked the inspector tab... However, thanks again. The line seperation did the trick.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.