4 #include <mos/gfx/character.hpp> 5 #include <mos/gfx/texture_2d.hpp> 12 using Char_map = std::map<unsigned int, Character>;
13 using Char_pair = std::pair<unsigned int, Character>;
19 static auto load(
const std::string &path) ->
Font;
22 auto height()
const -> float;
25 auto base()
const -> float;
Shared_texture_2D texture
Texture with characters.
Definition: font.hpp:28
auto height() const -> float
Height.
Definition: assets.hpp:17
Font(Char_map characters, const Shared_texture_2D &texture, float height, float base)
auto base() const -> float
Base line.
Bitmap font.
Definition: font.hpp:10
Char_map characters
Characters supported.
Definition: font.hpp:31