Opaque interface for a Font Atlas. More...
#include <le2d/resource/font.hpp>
Public Types | |
| using | Glyph = kvf::ttf::Glyph |
| using | GlyphLayout = kvf::ttf::GlyphLayout |
Public Member Functions | |
| virtual auto | build (gsl::not_null< kvf::ttf::Typeface * > face, TextHeight height) -> bool=0 |
| virtual auto | get_glyphs () const -> std::span< Glyph const >=0 |
| virtual auto | get_texture () const -> ITexture const &=0 |
| virtual auto | get_height () const -> TextHeight=0 |
| virtual auto | push_layouts (std::vector< GlyphLayout > &out, std::string_view text, float n_line_height=1.5f, bool use_tofu=true) const -> glm::vec2=0 |
Public Member Functions inherited from le::IResource | |
| virtual auto | is_ready () const -> bool=0 |
| Check if resource is ready to use. | |
Opaque interface for a Font Atlas.
| using le::IFontAtlas::Glyph = kvf::ttf::Glyph |
| using le::IFontAtlas::GlyphLayout = kvf::ttf::GlyphLayout |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |