STLL  0.0
Simple Text Layouting Library
STLL::Font_c Class Reference

contains all the FontFaces_c of one FontRessource_c More...

Public Member Functions

 Font_c (void)
 
void add (std::shared_ptr< FontFace_c > f)
 
auto begin (void) const
 
auto end (void) const
 
std::shared_ptr< FontFace_cget (char32_t codepoint) const
 find the fontface that contains the codepoint More...
 
uint32_t getHeight (void) const
 
int32_t getAscender (void) const
 
int32_t getDescender (void) const
 
int32_t getUnderlinePosition (void) const
 
int32_t getUnderlineThickness (void) const
 
 operator bool () const
 
bool operator== (const Font_c &rhs) const
 

Detailed Description

contains all the FontFaces_c of one FontRessource_c

You usually don't create this class, it is greated for you by FontCache_c::getFont

Constructor & Destructor Documentation

STLL::Font_c::Font_c ( void  )
inline

Member Function Documentation

void STLL::Font_c::add ( std::shared_ptr< FontFace_c f)
inline

add a font face to the font

auto STLL::Font_c::begin ( void  ) const
inline

iterators for for loops

auto STLL::Font_c::end ( void  ) const
inline
std::shared_ptr<FontFace_c> STLL::Font_c::get ( char32_t  codepoint) const

find the fontface that contains the codepoint

int32_t STLL::Font_c::getAscender ( void  ) const
inline
int32_t STLL::Font_c::getDescender ( void  ) const
inline
uint32_t STLL::Font_c::getHeight ( void  ) const
inline
int32_t STLL::Font_c::getUnderlinePosition ( void  ) const
inline
int32_t STLL::Font_c::getUnderlineThickness ( void  ) const
inline
STLL::Font_c::operator bool ( ) const
inlineexplicit

number of font faces in the font

bool STLL::Font_c::operator== ( const Font_c rhs) const
inline

comparison operator


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