Page 1 of 1

Problems to show russian words

Posted: Sun Jul 09, 2023 9:59 am
by Juan Carlos
I want show a russian word using a cirilic font, but the code only show me strange letters, but if I write the word in spanish or english it is showed properly and doing the same with a graphic design program, the word shows it well, I tryed to SetDefaultEnconding but hasn't to ISO8559-5 the russian codes, any ideas?

Code: Select all

@FONT 1, "Fonts/Cirilico.ttf", 54, {Engine=#FONTENGINE_INBUILT}

UseFont(1)
SetFontColor(#RED)
SetFontStyle(#EDGE, #YELLOW, 2)
SetFontStyle(#ANTIALIAS)
CreateTextObject(1, "неудачник")
CreateTextObject(2, "PERDEDOR")

DisplayTextObject(1, #CENTER, 100)
DisplayTextObject(2, #CENTER, 300)

EscapeQuit(False)
Repeat
  WaitEvent
Forever

Re: Problems to show russian words

Posted: Sun Jul 09, 2023 10:05 am
by plouf
In what os ? Amigaos has some limitations couldnt fully recall
But os3 is even more limited i think must be the os native languange to support it ( ime if you have english/spanish os moat peobably is very difficult..)

Win/linux/android is off ourse "better" as they are native fully utf oses

Re: Problems to show russian words

Posted: Sun Jul 09, 2023 10:25 am
by Flinx
Juan Carlos wrote: Sun Jul 09, 2023 9:59 am I want show a russian word using a cirilic font, but the code only show me strange letters
This is normal. Cirilico is not a real Cyrillic font, it has the Cyrillic characters in the positions of the Latin letters. Use a real Cyrillic font, then it will work.

Re: Problems to show russian words

Posted: Sun Jul 09, 2023 10:58 am
by Juan Carlos
plouf wrote: Sun Jul 09, 2023 10:05 am In what os ? Amigaos has some limitations couldnt fully recall
But os3 is even more limited i think must be the os native languange to support it ( ime if you have english/spanish os moat peobably is very difficult..)

Win/linux/android is off ourse "better" as they are native fully utf oses
At moment only I have tested on Windows, before to test on AmigaOS3.9 and MorphOS.

Re: Problems to show russian words

Posted: Sun Jul 09, 2023 10:59 am
by Juan Carlos
Flinx wrote: Sun Jul 09, 2023 10:25 am
Juan Carlos wrote: Sun Jul 09, 2023 9:59 am I want show a russian word using a cirilic font, but the code only show me strange letters
This is normal. Cirilico is not a real Cyrillic font, it has the Cyrillic characters in the positions of the Latin letters. Use a real Cyrillic font, then it will work.
It is a real font, because the graphic design program shows the word well, the name is because I changed it to use with Hollywood.

Re: Problems to show russian words

Posted: Sun Jul 09, 2023 11:15 am
by Flinx
Juan Carlos wrote: Sun Jul 09, 2023 10:59 am It is a real font, because the graphic design program shows the word well
No, it isn't. Look at the table here (scroll down). At the position of the character D there is a Д. Therefore, in your word PERDEDOR your script shows no D characters, but Д and the other Cyrillic characters.
Test your script with a font such as Open Sans, which contains the Cyrillic characters in the correct positions.

Re: Problems to show russian words

Posted: Sun Jul 09, 2023 11:29 am
by Juan Carlos
Flinx wrote: Sun Jul 09, 2023 11:15 am
Juan Carlos wrote: Sun Jul 09, 2023 10:59 am It is a real font, because the graphic design program shows the word well
No, it isn't. Look at the table here (scroll down). At the position of the character D there is a Д. Therefore, in your word PERDEDOR your script shows no D characters, but Д and the other Cyrillic characters.
Test your script with a font such as Open Sans, which contains the Cyrillic characters in the correct positions.
Thank you for your help, I'll test with the Open Sans font.

Re: Problems to show russian words

Posted: Sun Jul 09, 2023 2:28 pm
by Juan Carlos
Flinx wrote: Sun Jul 09, 2023 11:15 am
Juan Carlos wrote: Sun Jul 09, 2023 10:59 am It is a real font, because the graphic design program shows the word well
No, it isn't. Look at the table here (scroll down). At the position of the character D there is a Д. Therefore, in your word PERDEDOR your script shows no D characters, but Д and the other Cyrillic characters.
Test your script with a font such as Open Sans, which contains the Cyrillic characters in the correct positions.
Thank you so much, I tested this Open Sans font and it is a great discover to resolve problems with other languages, now it shows the russian words perfectly, even is possible show Polish words too peferctly. Thank you.