Class: ewol::resource::TexturedFont


Constructor and Destructor:

#                                         TexturedFont     (const std::string & _fontName);
# ~TexturedFont (void);

Synopsis:

+  int32_t                                getHeight        (const enum ewol::font::mode _displayMode);
+ int32_t getFontSize (void);
+ int32_t getIndex (char32_t _charcode,
const enum ewol::font::mode _displayMode);
+ ewol::GlyphProperty * getGlyphPointer (const char32_t & _charcode,
const enum ewol::font::mode _displayMode);
+ static ewol::resource::TexturedFont * keep (const std::string & _filename);
+ static void release (ewol::resource::TexturedFont * & _object);
- bool addGlyph (const char32_t & _val);

Object Hierarchy:

ewol::Object
    +--> ewol::Resource
        +--> ewol::resource::Texture
            +--> ewol::resource::TexturedFont

Detail:

getHeight ()

int32_t getHeight(const enum ewol::font::mode _displayMode);

get the display height of this font


getFontSize ()

int32_t getFontSize(void);

get the font height (user friendly)


getIndex ()

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

get the ID of a unicode charcode


getGlyphPointer ()

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

get the pointer on the coresponding glyph


ewol::resource::keep ()

static ewol::resource::TexturedFont * keep(const std::string & _filename);

keep the resource pointer.
Notes: Never free this pointer by your own...


ewol::resource::release ()

static void release(ewol::resource::TexturedFont * & _object);

release the keeped resources


ewol::resource::TexturedFont ()

TexturedFont(const std::string & _fontName);



ewol::resource::~TexturedFont ()

~TexturedFont(void);



addGlyph ()

bool addGlyph(const char32_t & _val);

add a glyph in a texture font.