struct mrpt::viz::TFontParams
Overview
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()
#include <mrpt/viz/opengl_fonts.h> struct TFontParams { // fields std::string vfont_name = "mono"; float vfont_scale = 10.0f; 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; double vfont_spacing = 1.5; double vfont_kerning = 0.1; // construction TFontParams(); }; // direct descendants struct T2DTextData;
Fields
std::string vfont_name = "mono"
Vectorized font name (“sans”,”mono”,”serif”)
float vfont_scale = 10.0f
Size of characters [pixels].
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