Euphoria
|
font.h
Go to the documentation of this file.
Definition: button.h:15
std::map< int, std::shared_ptr< Glyph > > CharToGlyphMap
Definition: font.h:48
@ top_center
@ bottom_center
@ baseline_center
@ bottom_left
@ top_left
@ baseline_left
@ bottom_right
@ baseline_right
@ top_right
Definition: vfs_path.h:36
Definition: vfs.h:74
Definition: font.h:175
std::map< std::string, int > private_use_aliases
Definition: font.h:181
ListOfTextDrawCommands compile_list(const core::UiText &text, float size) const
Definition: font.cc:489
void draw_background(SpriteRenderer *renderer, float alpha, const Rectf &where) const
Definition: font.cc:301
DrawableFont(io::FileSystem *fs, TextureCache *cache, const io::FilePath &font_file)
Definition: font.cc:126
Definition: font.h:111
void set_text(const core::UiText &new_text)
Definition: font.cc:527
void operator=(DrawableText &&)=delete
~DrawableText()
DrawableText(DrawableText &&other)=delete
void operator=(const DrawableText &)=delete
void set_background(bool new_use_background, float new_alpha=0.5f)
Definition: font.cc:535
void draw(SpriteRenderer *renderer, const vec2f &p, const Rgb &base_hi_color) const
Definition: font.cc:587
DrawableText(const DrawableText &other)=delete
void set_alignment(Align new_alignment)
Definition: font.cc:543
Definition: font.h:33
Glyph(const Rectf &sprite, const Rectf &texture, int ch, float ad)
Definition: font.cc:34
Definition: font.h:84
void draw(SpriteRenderer *renderer, const vec2f &start_position, const Rgb &base_color, const Rgb &hi_color)
Definition: font.cc:349
std::vector< TextDrawCommand > commands
Definition: font.h:85
void add(const Texture2 *texture, const Rectf &sprite_rect, const Rectf &texture_rect, bool hi)
Definition: font.cc:336
Definition: spriterender.h:35
Definition: font.h:67
TextDrawCommand(const Texture2 *texture, const Rectf &sprite_rect, const Rectf &texture_rect, bool hi)
Definition: font.cc:320
Definition: texture.h:78
Definition: texturecache.h:18
Definition: font.cc:373