How to display Chinese on sfgui
Closed this issue · 5 comments
wu1274704958 commented
How to display Chinese on sfgui
eXpl0it3r commented
- Load a font that supports Chinese characters
- Render Chinese text
Have you run into any issues?
wu1274704958 commented
@eXpl0it3r SFGUI::AddCharacterSet(u32,u32) How to call this function
wu1274704958 commented
The sfml release library font.loadFromFile does not work properly while the debug library works well
eXpl0it3r commented
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?
binary1248 commented
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);