TankOs/SFGUI

How to display Chinese on sfgui

Closed this issue · 5 comments

How to display Chinese on sfgui

  1. Load a font that supports Chinese characters
  2. Render Chinese text

Have you run into any issues?

@eXpl0it3r SFGUI::AddCharacterSet(u32,u32) How to call this function

The sfml release library font.loadFromFile does not work properly while the debug library works well

loadFromyFile works fine. If it can't find your font, then you need to check your individual working directory.

What do you intend to achieve with AddCharacterSet?

You should try to get your font loaded and its glyphs displayed in SFML before trying with SFGUI. For SFML support, you can visit the SFML forum and ask there. As for your question regarding AddCharacterSet, just call the method on the sfg::SFGUI object you create:

sfg::SFGUI sfgui;
sfgui.AddCharacterSet(someLowCodepoint, someHighCodepoint);