scahp Posted September 20, 2011 Share Posted September 20, 2011 Hi, I want display unicode characters in WidthgetLabel. because i will service to asia. but i failed to display font. i attached error files. Link to comment
binstream Posted September 20, 2011 Share Posted September 20, 2011 Use TTF font with your language characters. Link to comment
scahp Posted September 20, 2011 Author Share Posted September 20, 2011 thanks to fast response. i changed ttf font. (console.ttf, font.ttf) but it affect to only console. GUI doesn't affected. and i attached some screenshot and font files. -------------------------------------------------------------------- this is my script. ////////////////////////////////////////////////////////////////////////// // UI ScrollBox WidgetWindow scrollWindow; scrollWindow = new WidgetWindow(gui, "ScrollWindow"); scroll = new WidgetScrollBox(gui); scroll.setWidth(100); scroll.setHeight(256); scroll.setHScrollEnabled(0); for(int i=0;i<30;i++) { WidgetLabel label = new WidgetLabel(gui,format("하하 %d",scroll.getNumChilds())); scroll.addChild(label); } scrollWindow.addChild(scroll,GUI_ALIGN_EXPAND); scrollWindow.arrange(); scrollWindow.setSizeable(1); gui.addChild(scrollWindow, GUI_ALIGN_OVERLAP | GUI_ALIGN_CENTER); scrollWindow.setPosition(1000, 150); ////////////////////////////////////////////////////////////////////////// NanumGothic(Korea_font).zip Link to comment
steve3d Posted September 23, 2011 Share Posted September 23, 2011 save your code as utf8 encoded. btw, you don't need to change default console.ttf, just change font.ttf to your font. Link to comment
manguste Posted September 23, 2011 Share Posted September 23, 2011 Thank you, Steve :) Link to comment
scahp Posted September 26, 2011 Author Share Posted September 26, 2011 I solved it!. Thanks Steve and manguste! :) Link to comment
Recommended Posts