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


getSize

+ float getSize (float _fontHeight);
get the font size with a specific display size


getIndex

+ int32_t getIndex (char32_t _charcode);
get the ID of a unicode charcode


getGlyphPointer

+ ewol::GlyphProperty* getGlyphPointer (const char32_t & _charcode);
get the pointer on the coresponding glyph


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 ();