Project Alice
|
#include <bmfont.hpp>
Public Member Functions | |
bm_font () | |
bm_font (sys::state &state, simple_fs::file &font_metrics, simple_fs::file &font_image) | |
bm_font (bm_font &&src) noexcept | |
bm_font & | operator= (bm_font &&src) noexcept |
~bm_font () | |
float | get_height () const |
float | get_string_width (sys::state &state, char const *, uint32_t) const |
bool | parse_font (sys::state &state, simple_fs::file &f) |
int | get_kerning_pair (char, char) const |
Public Attributes | |
std::array< char_descriptor, 256 > | chars |
ankerl::unordered_dense::map< uint16_t, int32_t > | kernings |
int32_t | line_height = 0 |
int32_t | base = 0 |
int32_t | width = 0 |
int32_t | height = 0 |
int32_t | pages = 0 |
int32_t | scale_w = 0 |
int32_t | scale_h = 0 |
GLuint | ftexid = 0 |
Definition at line 54 of file bmfont.hpp.
|
inline |
Definition at line 56 of file bmfont.hpp.
|
inline |
|
inlinenoexcept |
Definition at line 64 of file bmfont.hpp.
text::bm_font::~bm_font | ( | ) |
Definition at line 157 of file bmfont.cpp.
|
inline |
int text::bm_font::get_kerning_pair | ( | char | first, |
char | second | ||
) | const |
float text::bm_font::get_string_width | ( | sys::state & | state, |
char const * | string, | ||
uint32_t | count | ||
) | const |
Definition at line 139 of file bmfont.cpp.
Definition at line 74 of file bmfont.hpp.
bool text::bm_font::parse_font | ( | sys::state & | state, |
simple_fs::file & | f | ||
) |
Definition at line 120 of file bmfont.cpp.
int32_t text::bm_font::base = 0 |
Definition at line 90 of file bmfont.hpp.
std::array<char_descriptor, 256> text::bm_font::chars |
Definition at line 87 of file bmfont.hpp.
GLuint text::bm_font::ftexid = 0 |
Definition at line 96 of file bmfont.hpp.
int32_t text::bm_font::height = 0 |
Definition at line 92 of file bmfont.hpp.
ankerl::unordered_dense::map<uint16_t, int32_t> text::bm_font::kernings |
Definition at line 88 of file bmfont.hpp.
int32_t text::bm_font::line_height = 0 |
Definition at line 89 of file bmfont.hpp.
int32_t text::bm_font::pages = 0 |
Definition at line 93 of file bmfont.hpp.
int32_t text::bm_font::scale_h = 0 |
Definition at line 95 of file bmfont.hpp.
int32_t text::bm_font::scale_w = 0 |
Definition at line 94 of file bmfont.hpp.
int32_t text::bm_font::width = 0 |
Definition at line 91 of file bmfont.hpp.