19#ifndef HEADER_FONT_SETTINGS_HPP
20#define HEADER_FONT_SETTINGS_HPP
22#include "utils/leak_check.hpp"
63 FontSettings(
bool black_border = false,
bool colored_border = false,
64 bool thin_border = false,
float scale = 1.0f,
66 const video::SColor& shadow_color = video::SColor(0, 0, 0, 0),
67 const video::SColor& border_color = video::SColor(0, 0, 0, 0))
71 m_thin_border = thin_border;
This class stores settings when rendering fonts, used when instantiating irr::gui::ScalableFont.
Definition: font_settings.hpp:33
bool useThinBorder() const
Return if the border should be thin or not.
Definition: font_settings.hpp:124
void setThinBorder(bool thin)
Set whether the text outline should be thin or not.
Definition: font_settings.hpp:108
const video::SColor & getBorderColor() const
Return the color of the border.
Definition: font_settings.hpp:115
video::SColor m_border_color
Used when m_colored_border is true.
Definition: font_settings.hpp:56
bool useShadow() const
Return if shadow is enabled.
Definition: font_settings.hpp:93
bool useColoredBorder() const
Return if black border is enabled.
Definition: font_settings.hpp:121
bool useBlackBorder() const
Return if black border is enabled.
Definition: font_settings.hpp:118
const video::SColor & getShadowColor() const
Return the color of shadow.
Definition: font_settings.hpp:90
void setShadowColor(const video::SColor &col)
Set the color of shadow.
Definition: font_settings.hpp:87
void setShadow(bool shadow)
Set whether shadow is enabled.
Definition: font_settings.hpp:97
float getScale() const
Return the scaling.
Definition: font_settings.hpp:83
float m_scale
Scaling when rendering.
Definition: font_settings.hpp:47
void setBlackBorder(bool border)
Set whether black border is enabled.
Definition: font_settings.hpp:101
bool m_black_border
True if black border will be drawn when rendering.
Definition: font_settings.hpp:36
video::SColor m_shadow_color
Save the color of shadow when rendering.
Definition: font_settings.hpp:53
void setBorderColor(const video::SColor &col)
Set the color of border (used when a non-black border is requested).
Definition: font_settings.hpp:112
void setScale(float scale)
Set the scaling.
Definition: font_settings.hpp:80
void setColoredBorder(bool border)
Set whether a custom colored border is enabled.
Definition: font_settings.hpp:105
bool m_shadow
True if shadow will be drawn when rendering.
Definition: font_settings.hpp:50
bool m_colored_border
True if a custom colored border will be drawn when rendering.
Definition: font_settings.hpp:41