This tutorial presents a step-by-step introduction into the FreeType library, covering the most basic needs.
I. Simple Glyph Loading
- 1. Header Files
- 2. Library Initialization
- 3. Loading a Font Face
- 4. Accessing the Face Data
- 5. Setting the Current Pixel Size
- 6. Loading a Glyph Image
- 7. Simple Text Rendering
II. Managing Glyphs
- 1. Glyph Metrics
- 2. Managing Glyph Images
- 3. Global Glyph Metrics
- 4. Simple Text Rendering: Kerning and Centering
- 5. Advanced Text Rendering: Transformation and Centering and Kerning
- 6. Accessing Metrics in Design Font Units, and Scaling Them
- Conclusion