Need a test font that work with 'weird' characters like ä

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
gcmartijn
Party member
Posts: 136
Joined: Sat Dec 28, 2019 6:35 pm

Need a test font that work with 'weird' characters like ä

Post by gcmartijn »

Hi,

Does someone have a font that includes characters like: ä

I want to test:

Code: Select all

 love.graphics.print("testätest")
At the moment the output is: testtest

All fonts that I download don't support it, but that's weird because I do see it inside the font example.
For example this font, do show the special character:

https://fonts.google.com/specimen/Robot ... .open=true

Thanks!
User avatar
pgimeno
Party member
Posts: 3548
Joined: Sun Oct 18, 2015 2:58 pm

Re: Need a test font that work with 'weird' characters like ä

Post by pgimeno »

Not sure what problem you're having. Even with the default font, that character works for me. And the one in Roboto Regular as well.
grump
Party member
Posts: 947
Joined: Sat Jul 22, 2017 7:43 pm

Re: Need a test font that work with 'weird' characters like ä

Post by grump »

Lua file was probably saved with wrong encoding. Make sure it's utf-8.
gcmartijn
Party member
Posts: 136
Joined: Sat Dec 28, 2019 6:35 pm

Re: Need a test font that work with 'weird' characters like ä

Post by gcmartijn »

Oke, good to know thanks.
Then I know I have to check my code and create a small test script.
Post Reply

Who is online

Users browsing this forum: No registered users and 167 guests