class: ewol::compositing::Text


Description:



Constructor and Destructor:

+                                                       Text              (const std::string & _fontName,
int32_t _fontSize);
+ virtual ~Text ();

Synopsis:

#         std::shared_ptr<ewol::resource::TexturedFont> m_font;
+ virtual void drawD (bool _disableDepthTest);
+ virtual void drawMT (const mat4 & _transformationMatrix,
bool _enableDepthTest);
# float m_size;
+ virtual float getHeight ();
+ virtual float getSize ();
+ virtual ewol::GlyphProperty* getGlyphPointer (char32_t _charcode);
+ virtual void setFontSize (int32_t _fontSize);
+ virtual void setFontName (const std::string & _fontName);
+ virtual void setFont (std::string _fontName,
int32_t _fontSize);
+ virtual void setFontMode (enum ewol::font::mode _mode);
+ virtual void printChar (const char32_t & _charcode);
+ virtual vec3 calculateSizeChar (const char32_t & _charcode);

Object Hierarchy:

+ewol::Compositing
+--> +ewol::compositing::TextBase
+--> ewol::compositing::Text

Detail:

m_font

# std::shared_ptr<ewol::resource::TexturedFont> m_font;
Font resources


Text

+  Text (const std::string & _fontName,
int32_t _fontSize);
generic constructor


~Text

+ virtual  ~Text ();
generic destructor


drawD

+ virtual void drawD (bool _disableDepthTest);
draw All the refistered text in the current element on openGL


drawMT

+ virtual void drawMT (const mat4 & _transformationMatrix,
bool _enableDepthTest);


m_size

# float m_size;



getHeight

+ virtual float getHeight ();



getSize

+ virtual float getSize ();



getGlyphPointer

+ virtual ewol::GlyphProperty* getGlyphPointer (char32_t _charcode);



setFontSize

+ virtual void setFontSize (int32_t _fontSize);
Specify the font size (this reset the internal element of the current text (system requirement)


setFontName

+ virtual void setFontName (const std::string & _fontName);
Specify the font name (this reset the internal element of the current text (system requirement)


setFont

+ virtual void setFont (std::string _fontName,
int32_t _fontSize);
Specify the font property (this reset the internal element of the current text (system requirement)


setFontMode

+ virtual void setFontMode (enum ewol::font::mode _mode);
Specify the font mode for the next @ref print


printChar

+ virtual void printChar (const char32_t & _charcode);
display the current char in the current element (note that the kerning is availlable if the position is not changed)


calculateSizeChar

+ virtual vec3 calculateSizeChar (const char32_t & _charcode);