Page 1 of 1
How can i add a new font to CEGUI Editor.?
Posted: Sun Aug 06, 2006 22:21
by Ahmadi
Hi
i want add new font to CEGUI Editor. its not a english font. but if i know how can i add a new english font to CEGUI Editor, then i can add my font.
Pre Thanks for any help
Ahmadi
Posted: Mon Aug 07, 2006 00:08
by tgraupmann
Localization sounds good. Is it easy to add a new font? How would you go about doing it?
Posted: Mon Aug 07, 2006 07:38
by scriptkid
Hi,
adding an new font is possible indeed. You can save your new font definition (xml) into the directory which contains your fonts. Then is becomes available to set as a window's font, or even as a default font through the "View->Set default font" menu item. (After restarting the editor).
Make sure that you specify the glyph information inside the definition file for non-English characters.
Good luck!
Posted: Mon Aug 07, 2006 10:52
by Ahmadi
scriptkid wrote:Hi,
adding an new font is possible indeed. You can save your new font definition (xml) into the directory which contains your fonts. Then is becomes available to set as a window's font, or even as a default font through the "View->Set default font" menu item. (After restarting the editor).
Make sure that you specify the glyph information inside the definition file for non-English characters.
Good luck!
Ok, now i have my font in editor, but editor only use 0..127 character of my font, and i can not use 128..255 character in editor.
my font have 0..255 character that i only can use first half of it in editor.
No setting founded for character limitation.
Posted: Mon Aug 07, 2006 12:29
by Ahmadi
Also i can not find any font setting that can i change character limitation with it .
Maybe limitation is in CELayoutEditor.exe?
Posted: Mon Aug 07, 2006 14:34
by tgraupmann
scriptkid wrote:Hi,
adding an new font is possible indeed. You can save your new font definition (xml) into the directory which contains your fonts. Then is becomes available to set as a window's font, or even as a default font through the "View->Set default font" menu item. (After restarting the editor).
Make sure that you specify the glyph information inside the definition file for non-English characters.
Good luck!
Where do you get a font definition xml file from? And the glyphs. What if you just have a TTF file?
Posted: Tue Aug 08, 2006 12:20
by scriptkid
Hi,
font definition files are the ones you find in "datafiles/fonts". You need to define a font in such a file to be able to create them non-hardcoded.
About the font settings: please search the forum for "glyphset". This results in topics about "glypsets", "glyphranges", ASCII vs. Utf8* and so on. I'm not a font / unicode guru myself, so i hope this helps.
Good luck both of you!
Posted: Fri Aug 11, 2006 03:57
by tgraupmann
Posted: Fri Aug 11, 2006 03:58
by tgraupmann
Posted: Tue Sep 12, 2006 15:39
by arkos
hey, this is just a shot in the dark, but I was thinking that if the layout editor can't read more than 127 of your font, maybe you should try using the getWindow()->setText("you message here"); from within code. Maybe this will work.
Hope this helps.