Hello everybody!
Is it possible to use of non-English letters in ZGE? When I tried to use Hungarian accent letters with RenderText, I got spaces instead of these.
Use of non-English letters
Moderator: Moderators
Re: Use of non-English letters
Hi Tomi,
ZGameEditor stores project files ( .zgeproj ) using ISO-8859-1 encoding. As far as Hungarian is concerned, ISO-8859-1 is missing Ő,ő,Ű,ű. If you can live with typing Õ,õ,Û,û instead, you can simply adjust your font to still render Ő,ő,Ű,ű.
Alternatively you can use external / embedded text files using ISO-8859-2 encoding if you really dislike having to type Õ,õ,Û,û.
K
ZGameEditor stores project files ( .zgeproj ) using ISO-8859-1 encoding. As far as Hungarian is concerned, ISO-8859-1 is missing Ő,ő,Ű,ű. If you can live with typing Õ,õ,Û,û instead, you can simply adjust your font to still render Ő,ő,Ű,ű.
Alternatively you can use external / embedded text files using ISO-8859-2 encoding if you really dislike having to type Õ,õ,Û,û.
K
Re: Use of non-English letters
Thank you for your answer, Kjell!
At me, the problem can be seen on the attached image. Should I use some kind of "UseMaterial" before the RenderText to get the wished characters, as you used in your example (Is "CEMaterial" means "Central European"?)?
At me, the problem can be seen on the attached image. Should I use some kind of "UseMaterial" before the RenderText to get the wished characters, as you used in your example (Is "CEMaterial" means "Central European"?)?
Re: Use of non-English letters
Hi Tomi,
K
The built-in font only contains ASCII characters. So you need to provide your own font that has all characters you want to use. Attached is the example i used in the screenshot.
Correct, "CE" refers to "Central European" .. but you can name components whatever you want
K
- Attachments
-
- Hungarian.zgeproj
- (6.43 KiB) Downloaded 91 times
Re: Use of non-English letters
Many thanks, Kjell! I tried your example program and it works fine at me too! It's not too easy for me to understand the usage of these game components (Material, Font, etc. together), but your example is very helpful.
I'm so happy now!
I'm so happy now!