OpenTTD Source: TrueTypeFontCache::GlyphEntry Struct Reference

OpenTTD Source 15.3

Public Member Functions | Data Fields
TrueTypeFontCache::GlyphEntry Struct Reference

Container for information about a glyph. More...

`#include <truetypefontcache.h>`

## Public Member Functions
Sprite * | GetSprite ()

## 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

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:

- src/fontcache/truetypefontcache.h