
188 II Rendering Techniques
Text RenderingPreparation
Receive Text
Parse Font Descriptor
Create Representation
Create
and place
Letter Til
Apply
Texture
Request
Character
Descriptor
“Hello”
“H”
1
3
4
2
Text Unit
Character Hub
Bitmap Font Representation
Bitmap Font Parser
<xml>
Font Descriptor
</xml>
Figure 13.3. Bitmap font rendering structure.
preparation is complete, the text unit receives the strings to be rendered. It iterates
through all characters in these strings and requests the character descriptor for each
of them. It creates vertices and texture coordinates for each character tile a nd stores
them in one buffer.
Before I discuss how this concept can be implemen ...