Bitmap font.
More...
#include <font.hpp>
|
using | Char_map = std::map< unsigned int, Character > |
|
using | Char_pair = std::pair< unsigned int, Character > |
|
|
static auto | load (const std::string &path) -> Font |
|
◆ Font()
mos::gfx::Font::Font |
( |
Char_map |
characters, |
|
|
const Shared_texture_2D & |
texture, |
|
|
float |
height, |
|
|
float |
base |
|
) |
| |
- Parameters
-
characters | Chars supported. |
texture | Image with glyphs. |
◆ base()
auto mos::gfx::Font::base |
( |
| ) |
const -> float |
◆ height()
auto mos::gfx::Font::height |
( |
| ) |
const -> float |
◆ characters
Char_map mos::gfx::Font::characters |
◆ texture
Shared_texture_2D mos::gfx::Font::texture |
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/mos/checkouts/latest/include/mos/gfx/font.hpp