Euphoria
Public Member Functions | Public Attributes | List of all members
eu::render::DrawableFont Struct Reference

Public Member Functions

constexpr float get_line_height () const
 
 DrawableFont (const MemoryChunk &font_file)
 
void draw_background (SpriteBatch *renderer, float alpha, const Rect &where) const
 
ListOfTextDrawCommands compile_list (const std::string &text, float size) const
 

Public Attributes

float ascent = 0
 
float descent = 0
 
float line_gap = 0
 
std::unique_ptr< Texture2dtexture
 
CharToGlyphMap char_to_glyph
 
core::KerningMap kernings
 
std::map< std::string, intprivate_use_aliases
 

Detailed Description

Definition at line 166 of file font.h.

Constructor & Destructor Documentation

◆ DrawableFont()

eu::render::DrawableFont::DrawableFont ( const MemoryChunk font_file)
explicit

Member Function Documentation

◆ compile_list()

ListOfTextDrawCommands eu::render::DrawableFont::compile_list ( const std::string &  text,
float  size 
) const

◆ draw_background()

void eu::render::DrawableFont::draw_background ( SpriteBatch renderer,
float  alpha,
const Rect where 
) const

◆ get_line_height()

constexpr float eu::render::DrawableFont::get_line_height ( ) const
inlineconstexpr

Definition at line 171 of file font.h.

Member Data Documentation

◆ ascent

float eu::render::DrawableFont::ascent = 0

Definition at line 168 of file font.h.

◆ char_to_glyph

CharToGlyphMap eu::render::DrawableFont::char_to_glyph

Definition at line 177 of file font.h.

◆ descent

float eu::render::DrawableFont::descent = 0

Definition at line 169 of file font.h.

◆ kernings

core::KerningMap eu::render::DrawableFont::kernings

Definition at line 178 of file font.h.

◆ line_gap

float eu::render::DrawableFont::line_gap = 0

Definition at line 170 of file font.h.

◆ private_use_aliases

std::map<std::string, int> eu::render::DrawableFont::private_use_aliases

Definition at line 179 of file font.h.

◆ texture

std::unique_ptr<Texture2d> eu::render::DrawableFont::texture

Definition at line 176 of file font.h.


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