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

Public Member Functions

 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 line_height = 1
 
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

Member Data Documentation

◆ char_to_glyph

CharToGlyphMap eu::render::DrawableFont::char_to_glyph

Definition at line 170 of file font.h.

◆ kernings

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

Definition at line 171 of file font.h.

◆ line_height

float eu::render::DrawableFont::line_height = 1

Definition at line 168 of file font.h.

◆ private_use_aliases

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

Definition at line 172 of file font.h.

◆ texture

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

Definition at line 169 of file font.h.


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