OpenTTD Source 20260211-master-g04436b7401
TrueTypeFontCache::GlyphEntry Struct Reference

Container for information about a glyph. More...

#include <truetypefontcache.h>

Public Member Functions

SpriteGetSprite ()

Data Fields

std::unique_ptr< std::byte[]> 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<std::byte[]> TrueTypeFontCache::GlyphEntry::data

◆ width

uint8_t TrueTypeFontCache::GlyphEntry::width = 0

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