Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches
Flint::FontKey Struct Reference

Internal tracking key used to map a physical font asset instance in memory. More...

#include <flint/ui/ui-canvas.h>

+ Collaboration diagram for Flint::FontKey:

Public Member Functions

bool operator== (const FontKey &other) const
 

Public Attributes

std::string name
 
uint16_t weight
 
uint16_t fontSize = 0
 

Detailed Description

Internal tracking key used to map a physical font asset instance in memory.

Definition at line 30 of file ui-canvas.h.

Member Function Documentation

◆ operator==()

bool Flint::FontKey::operator== ( const FontKey & other) const
inline

Definition at line 35 of file ui-canvas.h.

Member Data Documentation

◆ fontSize

uint16_t Flint::FontKey::fontSize = 0

Rasterized point size footprint metric.

Definition at line 33 of file ui-canvas.h.

◆ name

std::string Flint::FontKey::name

Target typography asset family identifier name string.

Definition at line 31 of file ui-canvas.h.

◆ weight

uint16_t Flint::FontKey::weight

Numerical font weight parameters (e.g., 400 = Regular, 700 = Bold).

Definition at line 32 of file ui-canvas.h.


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