Struct TFontParams

Inheritance Relationships

Derived Type

Struct Documentation

struct TFontParams

A description of a bitmapped or vectorized text font. (Vectorized fonts are recommended for new code).

See also

mrpt::viz::gl_utils::glSetFont(), mrpt::viz::gl_utils::glDrawText()

Subclassed by mrpt::viz::T2DTextData

Public Functions

TFontParams() = default

Public Members

std::string vfont_name = "mono"

Vectorized font name (“sans”,”mono”,”serif”)

float vfont_scale = 10.0f

Size of characters [pixels]

mrpt::img::TColorf color = {1.0f, 1.0f, 1.0f, 1.0f}
bool draw_shadow = false
mrpt::img::TColorf shadow_color = {0.0f, 0.0f, 0.0f, 1.0f}
TOpenGLFontStyle vfont_style = mrpt::viz::FILL

(default: FILL) See TOpenGLFontStyle.

double vfont_spacing = 1.5

(default: 1.5) Refer to mrpt::viz::gl_utils::glDrawText

double vfont_kerning = 0.1

(default: 0.1) Refer to mrpt::viz::gl_utils::glDrawText