class: ewol::resource::FontBase


Description:



Constructor and Destructor:

+                 FontBase          ();
+ virtual ~FontBase ();

Synopsis:

+         void    init              (const std::string & _fontName);
+ virtual bool getGlyphProperty (int32_t _fontSize,
ewol::GlyphProperty & _property) = 0;
+ virtual bool drawGlyph (egami::Image & _imageOut,
int32_t _fontSize,
ivec2 _glyphPosition,
ewol::GlyphProperty & _property,
int8_t _posInImage) = 0;
+ virtual bool drawGlyph (egami::ImageMono & _imageOut,
int32_t _fontSize,
ewol::GlyphProperty & _property,
int32_t _borderSize) = 0;
+ virtual vec2 getSize (int32_t _fontSize,
const std::string & _unicodeString) = 0;
+ virtual float getSizeWithHeight (float _fontHeight) = 0;
+ virtual int32_t getHeight (int32_t _fontSize) = 0;
+ virtual void generateKerning (int32_t _fontSize,
std::vector<ewol::GlyphProperty> & _listGlyph);
+ virtual void display ();

Object Hierarchy:

+std::enable_shared_from_this<Object>
+ewol::object::ParameterList
+ewol::object::SignalList
+--> +ewol::Object
+--> +ewol::Resource
+--> ewol::resource::FontBase
+--> ewol::resource::FontFreeType

Detail:

FontBase

+  FontBase ();



init

+ void init (const std::string & _fontName);



~FontBase

+ virtual  ~FontBase ();



getGlyphProperty

+ virtual bool getGlyphProperty (int32_t _fontSize,
ewol::GlyphProperty & _property) = 0;



drawGlyph

+ virtual bool drawGlyph (egami::Image & _imageOut,
int32_t _fontSize,
ivec2 _glyphPosition,
ewol::GlyphProperty & _property,
int8_t _posInImage) = 0;



drawGlyph

+ virtual bool drawGlyph (egami::ImageMono & _imageOut,
int32_t _fontSize,
ewol::GlyphProperty & _property,
int32_t _borderSize) = 0;



getSize

+ virtual vec2 getSize (int32_t _fontSize,
const
std::string & _unicodeString) = 0;



getSizeWithHeight

+ virtual float getSizeWithHeight (float _fontHeight) = 0;



getHeight

+ virtual int32_t getHeight (int32_t _fontSize) = 0;



generateKerning

+ virtual void generateKerning (int32_t _fontSize,
std::vector<ewol::GlyphProperty> & _listGlyph);



display

+ virtual void display ();