Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
Public Member Functions | Public Attributes | List of all members
Font Struct Reference

Font struct. More...

#include <engine_structs.h>

Public Member Functions

bool is_valid () const
 
 Font ()=default
 
 ~Font ()
 

Public Attributes

HashMap< char, Charactercharacters
 
std::string font_path
 
int font_size = 48
 
float kerning = 0.0f
 
int ascent = 0
 
int descent = 0
 
int line_gap = 0
 
float scale = 1.0f
 

Detailed Description

Font struct.

TTF fonts

Version
0.0.1

Constructor & Destructor Documentation

◆ Font()

Font::Font ( )
default

◆ ~Font()

Font::~Font ( )
default

Member Function Documentation

◆ is_valid()

bool Font::is_valid ( ) const

Member Data Documentation

◆ ascent

int Font::ascent = 0

◆ characters

HashMap<char, Character> Font::characters

◆ descent

int Font::descent = 0

◆ font_path

std::string Font::font_path

◆ font_size

int Font::font_size = 48

◆ kerning

float Font::kerning = 0.0f

◆ line_gap

int Font::line_gap = 0

◆ scale

float Font::scale = 1.0f

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