Class: ewol::TexturedFont
Synopsis:
+ const char * getType (void);
+ 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::TexturedFont * keep (const std::string & _filename);
+ static void release (ewol::TexturedFont * & _object);
# TexturedFont (const std::string & _fontName);
# ~TexturedFont (void);
- bool addGlyph (const char32_t & _val);
Object Hierarchy:
ewol::EObject +--> ewol::Resource +--> ewol::Texture +--> ewol::TexturedFont
Detail:
getType ()
const char * getType(void);
getHeight ()
int32_t getHeight(const enum ewol::font::mode _displayMode);
get the display height of this font
Parameter [input]: _displayMode Mode to display the currrent font
Return: Dimention of the font need between 2 lines
getFontSize ()
int32_t getFontSize(void);
get the font height (user friendly)
Return: Dimention of the font the user requested
getIndex ()
int32_t getIndex(char32_t _charcode,
const enum ewol::font::mode _displayMode);
get the ID of a unicode charcode
Parameter [input]: _charcode The unicodeValue
Parameter [input]: _displayMode Mode to display the currrent font
Return: The ID in the table (if it does not exist : return 0)
getGlyphPointer ()
ewol::GlyphProperty * getGlyphPointer(const char32_t & _charcode,
const enum ewol::font::mode _displayMode);
get the pointer on the coresponding glyph
Parameter [input]: _charcode The unicodeValue
Parameter [input]: _displayMode Mode to display the currrent font
Return: The pointer on the glyph == > never NULL
ewol::keep ()
static ewol::TexturedFont * keep(const std::string & _filename);
keep the resource pointer.
Notes: Never free this pointer by your own...
Parameter [input]: _filename Name of the texture font.
Return: pointer on the resource or NULL if an error occured.
ewol::release ()
static void release(ewol::TexturedFont * & _object);
release the keeped resources
Parameter [input] [output]: reference on the object pointer
ewol::TexturedFont ()
TexturedFont(const std::string & _fontName);
ewol::~TexturedFont ()
~TexturedFont(void);
addGlyph ()
bool addGlyph(const char32_t & _val);
add a glyph in a texture font.
Parameter [input]: _val Char value to add.
Return: true if the image size have change, false otherwise
getType ()
const char * getType(void);
getHeight ()
int32_t getHeight(const enum ewol::font::mode _displayMode);
get the display height of this font
-
Parameter [input]: _displayMode Mode to display the currrent font
Return: Dimention of the font need between 2 lines
getFontSize ()
int32_t getFontSize(void);
get the font height (user friendly)
-
Return: Dimention of the font the user requested
getIndex ()
int32_t getIndex(char32_t _charcode, const enum ewol::font::mode _displayMode);
get the ID of a unicode charcode
-
Parameter [input]: _charcode The unicodeValue
Parameter [input]: _displayMode Mode to display the currrent font
Return: The ID in the table (if it does not exist : return 0)
getGlyphPointer ()
ewol::GlyphProperty * getGlyphPointer(const char32_t & _charcode, const enum ewol::font::mode _displayMode);
get the pointer on the coresponding glyph
-
Parameter [input]: _charcode The unicodeValue
Parameter [input]: _displayMode Mode to display the currrent font
Return: The pointer on the glyph == > never NULL
ewol::keep ()
static ewol::TexturedFont * keep(const std::string & _filename);
keep the resource pointer.
Notes: Never free this pointer by your own...
-
Parameter [input]: _filename Name of the texture font.
Return: pointer on the resource or NULL if an error occured.
ewol::release ()
static void release(ewol::TexturedFont * & _object);
release the keeped resources
-
Parameter [input] [output]: reference on the object pointer
ewol::TexturedFont ()
TexturedFont(const std::string & _fontName);
ewol::~TexturedFont ()
~TexturedFont(void);
addGlyph ()
bool addGlyph(const char32_t & _val);
add a glyph in a texture font.
-
Parameter [input]: _val Char value to add.
Return: true if the image size have change, false otherwise