Text line spacing in exported project



Hello, I have a problem.
I released a new demo of my game ( second time doing export of the game ), but, i just found out, that In exported game,
line spacing ( in labels ) are too big.
This problem hasn’t occurred first time when I exported the game ( that Demo version has proper text ).
One image is the game run through the engine ( how it should look ), other is exported (.exe) version.

I’ve looked into this a little and it seems like this might not be something you did, but an issue with Godot itself.
I found an issue on GitHub that points to something very similar, and I will link a possible workaround / solution to this, although I’m not sure if it’ll help.

But if you don’t want to search for it, here’s what VincentPoteet suggested on GitHub:

===

I know I’m late to the party, but I just wanted to share how I dealt with the issue.
I just put this in a _ready() function or something:

text= text.c_escape()
text = text.replace("\\r\\n", "\n")
text = text.c_unescape()

Hope this happens to help someone!

-a gamer

===

1 Like

Thank you, now shows properly.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.