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< Texture2 > | texture |
std::shared_ptr< Texture2 > | background |
CharToGlyphMap | char_to_glyph |
core::KerningMap | kernings |
std::map< std::string, int > | private_use_aliases |
Detailed Description
Constructor & Destructor Documentation
◆ DrawableFont()
eu::render::DrawableFont::DrawableFont | ( | io::FileSystem * | fs, |
TextureCache * | cache, | ||
const io::FilePath & | font_file | ||
) |
Member Function Documentation
◆ compile_list()
ListOfTextDrawCommands eu::render::DrawableFont::compile_list | ( | const core::UiText & | text, |
float | size | ||
) | const |
◆ draw_background()
void eu::render::DrawableFont::draw_background | ( | SpriteRenderer * | renderer, |
float | alpha, | ||
const Rectf & | where | ||
) | const |
Member Data Documentation
◆ background
std::shared_ptr<Texture2> eu::render::DrawableFont::background |
◆ char_to_glyph
CharToGlyphMap eu::render::DrawableFont::char_to_glyph |
◆ kernings
core::KerningMap eu::render::DrawableFont::kernings |
◆ line_height
◆ private_use_aliases
std::map<std::string, int> eu::render::DrawableFont::private_use_aliases |
◆ texture
The documentation for this struct was generated from the following files: