OGRE Wiki
Support and community documentation for Ogre3D
Ogre Forums
ogre3d.org
Log in
Username:
Password:
CapsLock is on.
Remember me (for 1 year)
Log in
Home
Tutorials
Tutorials Home
Basic Tutorials
Intermediate Tutorials
Mad Marx Tutorials
In Depth Tutorials
Older Tutorials
External Tutorials
Cookbook
Cookbook Home
CodeBank
Snippets
Experiences
Ogre Articles
Libraries
Libraries Home
Alternative Languages
Assembling A Toolset
Development Tools
OGRE Libraries
List of Libraries
Tools
Tools Home
DCC Tools
DCC Tutorials
DCC Articles
DCC Resources
Assembling a production pipeline
Development
Development Home
Roadmap
Building Ogre
Installing the Ogre SDK
Setting Up An Application
Ogre Wiki Tutorial Framework
Frequently Asked Questions
Google Summer Of Code
Help Requested
Ogre Core Articles
Community
Community Home
Projects Using Ogre
Recommended Reading
Contractors
Wiki
Immediate Wiki Tasklist
Wiki Ideas
Wiki Guidelines
Article Writing Guidelines
Wiki Styles
Wiki Page Tracker
Ogre Wiki Help
Ogre Wiki Help Overview
Help - Basic Syntax
Help - Images
Help - Pages and Structures
Help - Wiki Plugins
Toolbox
Freetags
Categories
List Pages
Structures
Trackers
Statistics
Rankings
List Galleries
Ogre Lexicon
Comments
History: QuickGUI Fonts
View page
Source of version: 3
(current)
!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: {CODE(wrap="1")}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 }{CODE} 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.
Search by Tags
Search Wiki by Freetags
Latest Changes
IDE Eclipse
FMOD SoundManager
HDRlib
Building Ogre V2 with CMake
Ogre 2.1 FAQ
Minimal Ogre Collision
Artifex Terra
OpenMB
Advanced Mogre Framework
MogreSocks
...more
Search
Find
Advanced
Search Help
Online Users
123 online users