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

Author Topic: Rendering special unicode characters in the .NET binding  (Read 1229 times)

0 Members and 1 Guest are viewing this topic.

GaborKovacs

  • Newbie
  • *
  • Posts: 13
    • View Profile
Rendering special unicode characters in the .NET binding
« on: September 11, 2011, 11:11:22 pm »
I've recently done a C++ SFML project in which I was able to configure Font objects with custom unicode character sets with no problem. Now I'm using SFML in a .NET project and the same thing does not appear to work: the non-Latin-1 characters (specifically: Ű, Ő, ű, ő) are not rendered. The relevant C# code is as follows:

Code: [Select]
string hungChars = @"AÁBCDEÉFGHIÍJKLMNOÓÖŐPQRSTUÚÜŰVWXYZaábcdeéfghiíjklmnoóöőpqrstuúüűvwxyz0123456789.?!,:;-()";
SFML.Graphics.Font arial = new SFML.Graphics.Font(@"C:\WINDOWS\Fonts\arial.ttf", 48, hungChars);
String2D text = new String2D("Does this work? áéíóöőúüű ÁÉÍÓÖŐÚÜŰ", arial);


Am I getting something wrong here?

Thanks for your help in advance,

Gabor

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Rendering special unicode characters in the .NET binding
« Reply #1 on: September 12, 2011, 08:02:05 am »
This kind of bug should be fixed in SFML 2, have you tried it?
Laurent Gomila - SFML developer

GaborKovacs

  • Newbie
  • *
  • Posts: 13
    • View Profile
Rendering special unicode characters in the .NET binding
« Reply #2 on: September 12, 2011, 08:29:01 am »
No, I haven't. I thought since version 1.6 was the current official version, it should be reasonably stable. Since all other features I'm using appear to work beautifully, I've been wondering if there's a possible workaround for displaying unicode characters with this version.

When is version 2.0 due to be officially released (just as a rough estimate)? Is the currently available snapshot reasonably close to what we can expect to see then?

Thanks for your help again.

Gabor

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Rendering special unicode characters in the .NET binding
« Reply #3 on: September 12, 2011, 08:36:30 am »
SFML 1.6 is not maintained anymore, although it's the last official version.

SFML 2.0 is a lot better, cleaner and more robust. It's almost complete, only the graphics API will be redesigned (ok, that's a huge modification...).
Laurent Gomila - SFML developer

GaborKovacs

  • Newbie
  • *
  • Posts: 13
    • View Profile
Rendering special unicode characters in the .NET binding
« Reply #4 on: September 12, 2011, 09:46:05 am »
Thank you. I'll have a go with the v2.0 snapshot then!

Gabor