If you haven't done so already, be sure to visit the Wiki Portal to read about how the wiki works. Especially the Ogre Wiki Overview page.
How to use and manage fonts
Fonts are defined as type Ogre::Font, and can be defined in .fontdef scripts. QuickGUI does
minimal scaling of font?s; all glyphs of a font are roughly the same size as the glyphs rendered by
FreeType. Because of this, it is recommended you create many fonts for use in your UI, with the size
included in the name for uniqueness and easy organization. For example:
acmesa.fontdef:
acmesa.10
{
type truetype
source acmesa.ttf
size 10
resolution 72
}
acmesa.12
{
type truetype
source acmesa.ttf
size 12
resolution 72
}
acmesa.14
{
type truetype
source acmesa.ttf
size 14
resolution 72
}
Fonts also support code point range, which are useful for non English languages. Make sure to call
GUIManager::setSupportedCodePoints to tell QuickGUI what codepoints are acceptable character injections.
It is important to note that Characters that are too big for their TextBounds will be clipped according to the Widget's client dimensions.
Contributors to this page: jacmoe
and
KungFooMasta
.
Page last modified on Wednesday 23 of December, 2009 18:41:49 UTC by jacmoe
.
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.
As an exception, any source code contributed within the content is released into the Public Domain.

