50 void drawString(
float dx,
float dy,
float fontSize,
const float* color,
const char*
string,
int length,
bool shadow=
true,
const float* shadowColor=
nullptr,
bool flipped=
false)
override;
53 static int fontSizeToPixelSize(
float fontSize);
#define SOVIEW2D_API
File to resolve system dependencies in View2D library.
Qt based implementation of View2DFont.
bool init(const char *fontname=nullptr) override
init with given font (either just a font name without .ttf or an absolute path) requires a valid GL c...
int getFontDescender(float fontSize) const override
get descender of font
void drawString(float dx, float dy, float fontSize, const float *color, const char *string, int length, bool shadow=true, const float *shadowColor=nullptr, bool flipped=false) override
draws a simple string with no line feeds, the drawing starts at the top-left corner color needs to po...
int getFontHeight(float fontSize) const override
get height of font (ascender + descender)
int getStringWidth(float fontSize, const char *string, int len) const override
get width of simple string
int getFontAscender(float fontSize) const override
get ascender of font
Abstract GL font drawing using FTGL.
base class for hardware shaders that can be used on a View2DTexture
Target mlrange_cast(Source arg)
Generic version of checked ML casts.