Class: ewol::resource::FontBase


Constructor and Destructor:

+           FontBase          (const std::string & _fontName);
+ ~FontBase (void);

Synopsis:

+  bool     getGlyphProperty  (int32_t _fontSize,
ewol::GlyphProperty & _property);
+ bool drawGlyph (egami::Image & _imageOut,
int32_t _fontSize,
ivec2 _glyphPosition,
ewol::GlyphProperty & _property,
int8_t _posInImage);
+ vec2 getSize (int32_t _fontSize,
const std::string & _unicodeString);
+ int32_t getHeight (int32_t _fontSize);
+ void generateKerning (int32_t _fontSize,
std::vector & _listGlyph);
+ void display (void);

Object Hierarchy:

ewol::Object
    +--> ewol::Resource
        +--> ewol::resource::FontBase
            +--> ewol::resource::FontFreeType

Detail:

ewol::resource::FontBase ()

FontBase(const std::string & _fontName);



ewol::resource::~FontBase ()

~FontBase(void);



getGlyphProperty ()

bool getGlyphProperty(int32_t _fontSize,
                      ewol::GlyphProperty & _property);



drawGlyph ()

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



getSize ()

vec2 getSize(int32_t _fontSize,
             const std::string & _unicodeString);



getHeight ()

int32_t getHeight(int32_t _fontSize);



generateKerning ()

void generateKerning(int32_t _fontSize,
                     std::vector & _listGlyph);



display ()

void display(void);