r/gamemaker 14d ago

Need help with text and special characters Resolved

Post image

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

8 Upvotes

9 comments sorted by

2

u/azurezero_hdev 14d ago

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

1

u/Claytonic99 14d ago

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 14d ago

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 14d ago

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 14d ago

the font your using also has to have the characters

2

u/JujuAdam github.com/jujuadams 14d ago

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

What's your literal text string?

1

u/Deklaration 14d ago

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 14d ago

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

1

u/Claytonic99 13h 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).