Inheritance diagram for ewol::resource::TexturedFont:
ewol::resource::Texture

Public Member Functions

 DECLARE_RESOURCE_NAMED_FACTORY (TexturedFont)
 
int32_t getHeight (const enum ewol::font::mode _displayMode=ewol::font::Regular)
 
int32_t getFontSize ()
 
int32_t getIndex (char32_t _charcode, const enum ewol::font::mode _displayMode)
 
ewol::GlyphPropertygetGlyphPointer (const char32_t &_charcode, const enum ewol::font::mode _displayMode)
 
enum ewol::font::mode getWrappingMode (const enum ewol::font::mode _source)
 
- Public Member Functions inherited from ewol::resource::Texture
 DECLARE_RESOURCE_FACTORY (Texture)
 
void setImageSize (ivec2 newSize)
 
egami::Imageget ()
 
void flush ()
 
bool updateContext ()
 
void removeContext ()
 
void removeContextToLate ()
 
const ivec2getOpenGlSize () const
 
uint32_t getRendererId () const
 

Public Attributes

std::vector< GlyphPropertym_listElement [4]
 

Protected Member Functions

void init (const std::string &_fontName)
 
- Protected Member Functions inherited from ewol::resource::Texture
void init (const std::string &_filename)
 
void init ()
 

Additional Inherited Members

- Protected Attributes inherited from ewol::resource::Texture
uint32_t m_texId
 
egami::Image m_data
 
vec2 m_endPointSize
 
bool m_loaded
 

Member Function Documentation

§ getFontSize()

int32_t ewol::resource::TexturedFont::getFontSize ( )
inline

get the font height (user friendly)

Returns
Dimention of the font the user requested

§ getGlyphPointer()

ewol::GlyphProperty* ewol::resource::TexturedFont::getGlyphPointer ( const char32_t &  _charcode,
const enum ewol::font::mode  _displayMode 
)

get the pointer on the coresponding glyph

Parameters
[in]_charcodeThe unicodeValue
[in]_displayModeMode to display the currrent font
Returns
The pointer on the glyph == > never nullptr

§ getHeight()

int32_t ewol::resource::TexturedFont::getHeight ( const enum ewol::font::mode  _displayMode = ewol::font::Regular)
inline

get the display height of this font

Parameters
[in]_displayModeMode to display the currrent font
Returns
Dimention of the font need between 2 lines

§ getIndex()

int32_t ewol::resource::TexturedFont::getIndex ( char32_t  _charcode,
const enum ewol::font::mode  _displayMode 
)

get the ID of a unicode charcode

Parameters
[in]_charcodeThe unicodeValue
[in]_displayModeMode to display the currrent font
Returns
The ID in the table (if it does not exist : return 0)

§ getWrappingMode()

enum ewol::font::mode ewol::resource::TexturedFont::getWrappingMode ( const enum ewol::font::mode  _source)
inline

The wrapping mode is used to prevent the non existance of a specific mode. For exemple when a blod mode does not exist, this resend a regular mode.

Parameters
[in]_sourceThe requested mode.
Returns
the best mode we have in stock.

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