Project Alice
Loading...
Searching...
No Matches
text::bm_font Class Reference

#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_fontoperator= (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
 

Detailed Description

Definition at line 54 of file bmfont.hpp.

Constructor & Destructor Documentation

◆ bm_font() [1/3]

text::bm_font::bm_font ( )
inline

Definition at line 56 of file bmfont.hpp.

◆ bm_font() [2/3]

text::bm_font::bm_font ( sys::state state,
simple_fs::file font_metrics,
simple_fs::file font_image 
)
inline

Definition at line 57 of file bmfont.hpp.

Here is the call graph for this function:

◆ bm_font() [3/3]

text::bm_font::bm_font ( bm_font &&  src)
inlinenoexcept

Definition at line 64 of file bmfont.hpp.

◆ ~bm_font()

text::bm_font::~bm_font ( )

Definition at line 157 of file bmfont.cpp.

Member Function Documentation

◆ get_height()

float text::bm_font::get_height ( ) const
inline

Definition at line 98 of file bmfont.hpp.

Here is the caller graph for this function:

◆ get_kerning_pair()

int text::bm_font::get_kerning_pair ( char  first,
char  second 
) const

Definition at line 131 of file bmfont.cpp.

Here is the caller graph for this function:

◆ get_string_width()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

bm_font & text::bm_font::operator= ( bm_font &&  src)
inlinenoexcept

Definition at line 74 of file bmfont.hpp.

◆ parse_font()

bool text::bm_font::parse_font ( sys::state state,
simple_fs::file f 
)

Definition at line 120 of file bmfont.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ base

int32_t text::bm_font::base = 0

Definition at line 90 of file bmfont.hpp.

◆ chars

std::array<char_descriptor, 256> text::bm_font::chars

Definition at line 87 of file bmfont.hpp.

◆ ftexid

GLuint text::bm_font::ftexid = 0

Definition at line 96 of file bmfont.hpp.

◆ height

int32_t text::bm_font::height = 0

Definition at line 92 of file bmfont.hpp.

◆ kernings

ankerl::unordered_dense::map<uint16_t, int32_t> text::bm_font::kernings

Definition at line 88 of file bmfont.hpp.

◆ line_height

int32_t text::bm_font::line_height = 0

Definition at line 89 of file bmfont.hpp.

◆ pages

int32_t text::bm_font::pages = 0

Definition at line 93 of file bmfont.hpp.

◆ scale_h

int32_t text::bm_font::scale_h = 0

Definition at line 95 of file bmfont.hpp.

◆ scale_w

int32_t text::bm_font::scale_w = 0

Definition at line 94 of file bmfont.hpp.

◆ width

int32_t text::bm_font::width = 0

Definition at line 91 of file bmfont.hpp.


The documentation for this class was generated from the following files: