TextDF.hpp
Go to the documentation of this file.
virtual void setFont(std::string _fontName, int32_t _fontSize)
Specify the font property (this reset the internal element of the current text (system requirement) ...
Definition: TextBase.hpp:43
Definition: TextDF.hpp:20
void updateSizeToRender(const vec2 &_size)
Calculate size to be at the best size for a render in this special size.
virtual void clear()
clear all the registered element in the current element
std::vector< float > m_glyphLevel
Level of display of the glyph (notmal : 0.50, bold : 0.40, super bold : 0.30 ...) ...
Definition: TextDF.hpp:23
virtual void loadProgram(const std::string &_shaderName)
load the openGL program and get all the ID needed
virtual void setFontName(const std::string &_fontName)
Specify the font name (this reset the internal element of the current text (system requirement) ...
Definition: Area.hpp:16
TextDF(const std::string &_fontName="", int32_t _fontSize=-1)
generic constructor
virtual vec3 calculateSizeChar(const char32_t &_charcode)
Definition: GlyphProperty.hpp:48
virtual void drawD(bool _disableDepthTest)
draw All the refistered text in the current element on openGL
virtual void setFontSize(int32_t _fontSize)
Specify the font size (this reset the internal element of the current text (system requirement) ...
ememory::SharedPtr< ewol::resource::DistanceFieldFont > m_fontDF
Font resources.
Definition: TextDF.hpp:22
int32_t m_GLglyphLevel
openGL Id on the glyph level display
Definition: TextDF.hpp:25
virtual void printChar(const char32_t &_charcode)
display the current char in the current element (note that the kerning is availlable if the position ...
virtual void setFontMode(enum ewol::font::mode _mode)
Specify the font mode for the next print.
virtual void drawMT(const mat4 &_transformationMatrix, bool _enableDepthTest)