Vital
Loading...
Searching...
No Matches
Fonts Class Reference

A singleton class providing access to a set of custom fonts. More...

#include <fonts.h>

Public Member Functions

virtual ~Fonts ()
 Destructor.
 
Font & proportional_regular ()
 Returns a reference to the proportional regular font.
 
Font & proportional_light ()
 Returns a reference to the proportional light font.
 
Font & proportional_title ()
 Returns a reference to the proportional title (light) font.
 
Font & proportional_title_regular ()
 Returns a reference to the proportional title (regular) font.
 
Font & monospace ()
 Returns a reference to the monospace font.
 

Static Public Member Functions

static Fontsinstance ()
 Gets the singleton instance of the Fonts class.
 

Detailed Description

A singleton class providing access to a set of custom fonts.

This class loads and stores various typefaces used throughout the UI. It provides a consistent source for fonts, including regular, light, title, and monospace variants.

Constructor & Destructor Documentation

◆ ~Fonts()

virtual Fonts::~Fonts ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ instance()

static Fonts * Fonts::instance ( )
inlinestatic

Gets the singleton instance of the Fonts class.

Returns
Pointer to the singleton Fonts instance.

◆ monospace()

Font & Fonts::monospace ( )
inline

Returns a reference to the monospace font.

Returns
A reference to the Font object.

◆ proportional_light()

Font & Fonts::proportional_light ( )
inline

Returns a reference to the proportional light font.

Returns
A reference to the Font object.

◆ proportional_regular()

Font & Fonts::proportional_regular ( )
inline

Returns a reference to the proportional regular font.

Returns
A reference to the Font object.

◆ proportional_title()

Font & Fonts::proportional_title ( )
inline

Returns a reference to the proportional title (light) font.

Returns
A reference to the Font object.

◆ proportional_title_regular()

Font & Fonts::proportional_title_regular ( )
inline

Returns a reference to the proportional title (regular) font.

Returns
A reference to the Font object.

The documentation for this class was generated from the following files: