utility 2026.1.9
A comprehensive C++ utilities library tailored for the development of modern desktop and extended reality (XR) applications.
Loading...
Searching...
No Matches
utility::graphic::Font::FontSizedKey Struct Reference

A struct representing a unique key for identifying a specific font face and size combination. More...

#include <headers/utility/graphic/text/font.hpp>

Public Member Functions

bool operator< (const FontSizedKey &other) const
 Comparison operator to allow FontSizedKey to be used as a key in std::map or other associative containers.
 

Public Attributes

std::string faceName
 The name of the font face (e.g., "Arial", "Times New Roman").
 
uint32_t fontSize = 0
 The size of the font in points (e.g., 12, 14, 16).
 

Detailed Description

A struct representing a unique key for identifying a specific font face and size combination.

Definition at line 39 of file font.hpp.

Member Function Documentation

◆ operator<()

bool utility::graphic::Font::FontSizedKey::operator< ( const FontSizedKey other) const
inline

Comparison operator to allow FontSizedKey to be used as a key in std::map or other associative containers.

Parameters
otherThe other FontSizedKey to compare against.
Returns
true if this FontSizedKey is less than the other, false otherwise.

Definition at line 59 of file font.hpp.

Member Data Documentation

◆ faceName

std::string utility::graphic::Font::FontSizedKey::faceName

The name of the font face (e.g., "Arial", "Times New Roman").

Definition at line 44 of file font.hpp.

◆ fontSize

uint32_t utility::graphic::Font::FontSizedKey::fontSize = 0

The size of the font in points (e.g., 12, 14, 16).

Definition at line 49 of file font.hpp.


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