class: ewol::resource::DistanceFieldFont
Description:
Constructor and Destructor:
# DistanceFieldFont ();
+ virtual ~DistanceFieldFont ();
Synopsis:
+ std::vector<GlyphProperty> m_listElement;
# void init (const std::string & _fontName);
+ 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);
+ std::shared_ptr<ewol::resource::DistanceFieldFont> keep (const std::string & _filename);
+ float getPixelBorderSize ();
+ const vec2 & getTextureBorderSize ();
+ void exportOnFile ();
+ bool importFromFile ();
Object Hierarchy:
+std::enable_shared_from_this<Object>
+ewol::object::ParameterList
+ewol::object::SignalList
+--> +ewol::Object
+--> +ewol::Resource
+--> +ewol::resource::Texture
+--> ewol::resource::DistanceFieldFont
Detail:
m_listElement
+ std::vector<GlyphProperty> m_listElement;
DistanceFieldFont
# DistanceFieldFont ();
init
# void init (const std::string & _fontName);
DECLARE_RESOURCE_NAMED_FACTORY
+ DECLARE_RESOURCE_NAMED_FACTORY (DistanceFieldFont );
~DistanceFieldFont
+ virtual ~DistanceFieldFont ();
getDisplayRatio
+ float getDisplayRatio (float _size);
getHeight
+ float getHeight (float _size);
get the display height of this font
Parameter [input]: | _size | Request font size |
Return: | | Dimention of the font need between 2 lines |
getSize
+ float getSize (float _fontHeight);
get the font size with a specific display size
Parameter [input]: | _fontHeight | Request font height |
Return: | | Dimention of the font for this compleate line size. |
getIndex
+ int32_t getIndex (char32_t _charcode);
get the ID of a unicode charcode
Parameter [input]: | _charcode | The unicodeValue |
Return: | | The ID in the table (if it does not exist : return 0) |
getGlyphPointer
+ ewol::GlyphProperty* getGlyphPointer (const char32_t & _charcode);
get the pointer on the coresponding glyph
Parameter [input]: | _charcode | The unicodeValue |
Return: | | The pointer on the glyph == > never nullptr |
keep
+ std::shared_ptr<ewol::resource::DistanceFieldFont> keep (const std::string & _filename);
keep the resource pointer.
Note: Never free this pointer by your own...
getPixelBorderSize
+ float getPixelBorderSize ();
getTextureBorderSize
+ const vec2 & getTextureBorderSize ();
exportOnFile
+ void exportOnFile ();
importFromFile
+ bool importFromFile ();