Font
Posted: Wed Nov 03, 2004 23:21
Not sure I understand your problem there (do you have errors in your CEGUI log?) but you can specify multiple fonts in code and use them when you like. For example, to create a CEGUI font called mySmallFont based on the Tahoma true type font that comes with the CEGUI samples:
You can then set this font as the default font like this:
Or just set individual widgets to use this font:
Hope that helps, sorry if I didnt understand your question.
Code: Select all
CEGUI::Font* smallfont = CEGUI::FontManager::getSingleton().createFont("mySmallFont", "/fonts/tahoma.ttf", 10, 0);
smallfont->setAutoScalingEnabled(true);
smallfont->setNativeResolution(Size(800, 600));
You can then set this font as the default font like this:
Code: Select all
System::getSingleton().setDefaultFont("mySmallFont");
Or just set individual widgets to use this font:
Code: Select all
myWidget->setFont("mySmallFont");
Hope that helps, sorry if I didnt understand your question.