Euphoria
eu::core::FontData Struct Reference

Public Member Functions

 FontData (unsigned char *ttf_buffer, float s)
 
void define_codepoint (int cp)
 
std::optional< int > from_glyph_index_to_unicode (int glyph) const
 
LoadedGlyph load_glyph (int code_point) const
 

Public Attributes

stbtt_fontinfo font
 
float size
 
bool was_loaded
 
int line_height = 0
 
std::vector< stbtt_kerningentry > kernings
 
std::map< int, int > index_to_unicode
 

Detailed Description

Definition at line 25 of file loadedfont.cc.

Constructor & Destructor Documentation

◆ FontData()

eu::core::FontData::FontData ( unsigned char *  ttf_buffer,
float  s 
)
inline

Definition at line 34 of file loadedfont.cc.

Member Function Documentation

◆ define_codepoint()

void eu::core::FontData::define_codepoint ( int  cp)
inline

Definition at line 52 of file loadedfont.cc.

◆ from_glyph_index_to_unicode()

std::optional<int> eu::core::FontData::from_glyph_index_to_unicode ( int  glyph) const
inline

Definition at line 58 of file loadedfont.cc.

◆ load_glyph()

LoadedGlyph eu::core::FontData::load_glyph ( int  code_point) const
inline

Definition at line 72 of file loadedfont.cc.

Member Data Documentation

◆ font

stbtt_fontinfo eu::core::FontData::font

Definition at line 27 of file loadedfont.cc.

◆ index_to_unicode

std::map<int, int> eu::core::FontData::index_to_unicode

Definition at line 32 of file loadedfont.cc.

◆ kernings

std::vector<stbtt_kerningentry> eu::core::FontData::kernings

Definition at line 31 of file loadedfont.cc.

◆ line_height

int eu::core::FontData::line_height = 0

Definition at line 30 of file loadedfont.cc.

◆ size

float eu::core::FontData::size

Definition at line 28 of file loadedfont.cc.

◆ was_loaded

bool eu::core::FontData::was_loaded

Definition at line 29 of file loadedfont.cc.


The documentation for this struct was generated from the following file: