COPASI API
4.40.278
|
#include <CLFontRendererBase.h>
Public Member Functions | |
virtual std::pair< double, double > | getTextureSize (const CLFontSpec &spec, const std::string &text)=0 |
virtual std::pair< CLTextTextureSpec *, GLubyte * > | operator() (const std::string &family, double fontSize, const std::string &text, CLText::FONT_WEIGHT weight=CLText::WEIGHT_NORMAL, CLText::FONT_STYLE style=CLText::STYLE_NORMAL, double zoomFactor=1.0)=0 |
virtual | ~CLFontRendererBase () |
A static abstract class that is the base class for a font renderer implementation.
|
inlinevirtual |
Destructor
|
pure virtual |
Returns the size for a font given a font, a text and a zoom factor.
|
pure virtual |
Functor that returns a TextureSpec object with a texture for the given font family, font size font weight, font style and text. The caller is responsible to free the memory of the TextureSpec object and of the pData in the TextureSpec.