|
| DECLARE_RESOURCE_NAMED_FACTORY (DistanceFieldFont) |
|
float | getDisplayRatio (float _size) |
|
float | getHeight (float _size) |
|
float | getSize (float _fontHeight) |
|
int32_t | getIndex (char32_t _charcode) |
|
ewol::GlyphProperty * | getGlyphPointer (const char32_t &_charcode) |
|
float | getPixelBorderSize () |
|
const vec2 & | getTextureBorderSize () |
|
void | exportOnFile () |
|
bool | importFromFile () |
|
| DECLARE_RESOURCE_FACTORY (Texture) |
|
void | setImageSize (ivec2 newSize) |
|
egami::Image & | get () |
|
void | flush () |
|
bool | updateContext () |
|
void | removeContext () |
|
void | removeContextToLate () |
|
const ivec2 & | getOpenGlSize () const |
|
uint32_t | getRendererId () const |
|
|
void | init (const std::string &_fontName) |
|
void | init (const std::string &_filename) |
|
void | init () |
|
§ getGlyphPointer()
ewol::GlyphProperty* ewol::resource::DistanceFieldFont::getGlyphPointer |
( |
const char32_t & |
_charcode | ) |
|
get the pointer on the coresponding glyph
- Parameters
-
[in] | _charcode | The unicodeValue |
- Returns
- The pointer on the glyph == > never nullptr
§ getHeight()
float ewol::resource::DistanceFieldFont::getHeight |
( |
float |
_size | ) |
|
|
inline |
get the display height of this font
- Parameters
-
[in] | _size | Request font size |
- Returns
- Dimention of the font need between 2 lines
§ getIndex()
int32_t ewol::resource::DistanceFieldFont::getIndex |
( |
char32_t |
_charcode | ) |
|
get the ID of a unicode charcode
- Parameters
-
[in] | _charcode | The unicodeValue |
- Returns
- The ID in the table (if it does not exist : return 0)
§ getSize()
float ewol::resource::DistanceFieldFont::getSize |
( |
float |
_fontHeight | ) |
|
|
inline |
get the font size with a specific display size
- Parameters
-
[in] | _fontHeight | Request font height |
- Returns
- Dimention of the font for this compleate line size.
§ keep()
keep the resource pointer.
- Note
- Never free this pointer by your own...
- Parameters
-
[in] | _filename | Name of the texture font. |
- Returns
- pointer on the resource or nullptr if an error occured.
The documentation for this class was generated from the following file: