OpenTTD Source 20241224-master-gee860a5c8e
TrueTypeFontCache::GlyphEntry Struct Reference

Container for information about a glyph. More...

#include <truetypefontcache.h>

Public Member Functions

SpriteGetSprite ()
 

Data Fields

std::unique_ptr< uint8_t[]> data
 The loaded sprite.
 
uint8_t width = 0
 The width of the glyph.
 

Detailed Description

Container for information about a glyph.

Definition at line 31 of file truetypefontcache.h.

Member Function Documentation

◆ GetSprite()

Sprite * TrueTypeFontCache::GlyphEntry::GetSprite ( )
inline

Definition at line 35 of file truetypefontcache.h.

Field Documentation

◆ data

std::unique_ptr<uint8_t[]> TrueTypeFontCache::GlyphEntry::data

The loaded sprite.

Definition at line 32 of file truetypefontcache.h.

Referenced by TrueTypeFontCache::GetGlyph(), and TrueTypeFontCache::GetGlyphWidth().

◆ width

uint8_t TrueTypeFontCache::GlyphEntry::width = 0

The width of the glyph.

Definition at line 33 of file truetypefontcache.h.

Referenced by TrueTypeFontCache::GetGlyphWidth().


The documentation for this struct was generated from the following file: