Euphoria
eu::render::DrawableFont Struct Reference

#include <font.h>

Public Member Functions

 DrawableFont (io::FileSystem *fs, TextureCache *cache, const io::FilePath &font_file)
 
void draw_background (SpriteRenderer *renderer, float alpha, const Rectf &where) const
 
ListOfTextDrawCommands compile_list (const core::UiText &text, float size) const
 

Public Attributes

float line_height = 1
 
std::unique_ptr< Texture2texture
 
std::shared_ptr< Texture2background
 
CharToGlyphMap char_to_glyph
 
core::KerningMap kernings
 
std::map< std::string, int > private_use_aliases
 

Detailed Description

Definition at line 174 of file font.h.

Constructor & Destructor Documentation

◆ DrawableFont()

eu::render::DrawableFont::DrawableFont ( io::FileSystem fs,
TextureCache cache,
const io::FilePath font_file 
)

Definition at line 125 of file font.cc.

Member Function Documentation

◆ compile_list()

ListOfTextDrawCommands eu::render::DrawableFont::compile_list ( const core::UiText text,
float  size 
) const

Definition at line 489 of file font.cc.

◆ draw_background()

void eu::render::DrawableFont::draw_background ( SpriteRenderer renderer,
float  alpha,
const Rectf where 
) const

Definition at line 300 of file font.cc.

Member Data Documentation

◆ background

std::shared_ptr<Texture2> eu::render::DrawableFont::background

Definition at line 178 of file font.h.

◆ char_to_glyph

CharToGlyphMap eu::render::DrawableFont::char_to_glyph

Definition at line 179 of file font.h.

◆ kernings

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

Definition at line 180 of file font.h.

◆ line_height

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

Definition at line 176 of file font.h.

◆ private_use_aliases

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

Definition at line 181 of file font.h.

◆ texture

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

Definition at line 177 of file font.h.


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