Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How i can see Greek text?  (Read 9333 times)

0 Members and 1 Guest are viewing this topic.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
How i can see Greek text?
« Reply #15 on: March 08, 2010, 06:58:33 pm »
0x271F doesn't fit in a char (your compiler should warn you). Try using wide characters instead:
Code: [Select]
sf::String Text(L"\x271F \x34 ", A, 50);
Laurent Gomila - SFML developer

dkaip

  • Newbie
  • *
  • Posts: 32
    • View Profile
How i can see Greek text?
« Reply #16 on: March 10, 2010, 08:57:59 am »
Ok buck again.
I just compile SFML2 with codeblocks 8.02 on XP(With svn version 6088 library not compile), and the i run the program to see my chars ...

Code: [Select]
if (!font.LoadFromFile("i2.ttf"))
sf::Text Text("\x0035, \x2718, \x2719, \x271a, \x271b, \x271c, \x271d, \x271e, \x271f, \x2720, \x2721, \x2722, \x2723, \x2724, \x2725,",font);


In this code i can see only the 5 and ,,,,, but the characters i can not see.
The characters exist and i can see with fontforge and with other applications.

Any idea? Somthing wrong with code or SFML2?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
How i can see Greek text?
« Reply #17 on: March 10, 2010, 09:03:17 am »
Have you read my last message? ...
Laurent Gomila - SFML developer

dkaip

  • Newbie
  • *
  • Posts: 32
    • View Profile
How i can see Greek text?
« Reply #18 on: March 10, 2010, 11:00:03 am »
Laurent thank's very mutch ....
Excelent the way with wide chars. I just uderstud the way ...
I see at last my char's, and thank's. Your framework and your job is very-very good.
Good day.
Jim