Inheritance diagram for ewol::resource::DistanceFieldFont:
ewol::resource::Texture

Public Member Functions

 DECLARE_RESOURCE_NAMED_FACTORY (DistanceFieldFont)
 
float getDisplayRatio (float _size)
 
float getHeight (float _size)
 
float getSize (float _fontHeight)
 
int32_t getIndex (char32_t _charcode)
 
ewol::GlyphPropertygetGlyphPointer (const char32_t &_charcode)
 
float getPixelBorderSize ()
 
const vec2getTextureBorderSize ()
 
void exportOnFile ()
 
bool importFromFile ()
 
- 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
 

Static Public Member Functions

static ememory::SharedPtr< ewol::resource::DistanceFieldFontkeep (const std::string &_filename)
 

Public Attributes

std::vector< GlyphPropertym_listElement
 

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

§ getGlyphPointer()

ewol::GlyphProperty* ewol::resource::DistanceFieldFont::getGlyphPointer ( const char32_t &  _charcode)

get the pointer on the coresponding glyph

Parameters
[in]_charcodeThe 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]_sizeRequest 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]_charcodeThe 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]_fontHeightRequest font height
Returns
Dimention of the font for this compleate line size.

§ keep()

static ememory::SharedPtr<ewol::resource::DistanceFieldFont> ewol::resource::DistanceFieldFont::keep ( const std::string &  _filename)
static

keep the resource pointer.

Note
Never free this pointer by your own...
Parameters
[in]_filenameName 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: