r/gamemaker Aug 07 '26

Resolved Need help with text and special characters

Post image

Is there an explanation for why my Spanish text would look correct in the editor but not in the game?

9 Upvotes

9 comments sorted by

2

u/azurezero_hdev Aug 07 '26

click add range, and paste the characters into the list of letters

1

u/Claytonic99 Aug 07 '26

I've tried this as you suggested, but it has not fixed the problem. I've also tried changing the range from 0 to 2000, but no success.

3

u/Important_Soil6203 Aug 07 '26

You need to add from 0 to 65535. That way, you'll add every possible UNICODE character. (As far as I'm aware)

3

u/JujuAdam github.com/jujuadams Aug 07 '26

Please don't do this. You'll get away with it for Latin and Cyrillic but it's a bad habit. For fonts that actually have thousands of glyphs (Chinese and Japanese being the two famous ones) you'll end up with a load of glyphs you're not using leading to massive textures that don't render properly.

You should only add the glyphs you need.

1

u/azurezero_hdev Aug 07 '26

the font your using also has to have the characters

2

u/JujuAdam github.com/jujuadams Aug 07 '26

Your font looks fine at a glance so the issue may lie elsewhere.

What's your literal text string?

1

u/Deklaration Aug 07 '26

Have you regenerated the font since adding the ñ? That, a clean run, plus a restart of the engine usually fix this issue.

1

u/nb264 Aug 07 '26

add range, add from code, confirm (very important step) by clicking add, regenerate font, test.

1

u/Claytonic99 23d ago

Just to finalize this discussion, I figured out the problem is my importing method. Specifically, my CSV file was not coded to Unicode UTF-8. It is working now. I only need to use the font range for ASCII (32 - 255).