41 class FontDescription_Impl;
209 std::shared_ptr<FontDescription_Impl> impl;
Charset get_charset() const
Get the font charset
Definition: font_description.h:97
Font description class.
Definition: font_description.h:66
Definition: font_description.h:98
Definition: font_description.h:100
Definition: font_description.h:103
Definition: font_description.h:101
Definition: font_description.h:96
float get_orientation() const
Returns the font orientation.
Definition: font_description.h:94
Definition: font_description.h:91
void set_anti_alias(bool setting=true)
Sets the font anti-alias setting (defaults to true)
FontWeight
Definition: font_description.h:43
Definition: font_description.h:108
float get_line_height() const
Returns the distance between each line.
float get_escapement() const
Returns the font escapement.
Definition: font_description.h:105
Definition: font_description.h:93
bool is_null() const
Returns true if this object is invalid.
Definition: font_description.h:112
void set_orientation(float value)
Sets the font orientation.
void set_escapement(float value)
Sets the font escapement.
std::string get_unique_id() const
Returns an unique string identifying this font description.
Definition: font_description.h:95
Definition: font_description.h:102
virtual ~FontDescription()
void set_charset(Charset new_charset)
Sets the font charset (defaults to charset_default)
void set_weight(FontWeight value=FontWeight::normal)
Sets the font weight.
bool get_subpixel() const
Get the font subpixel rendering setting (defaults to true)
static FontDescription create_null_object()
Create null object.
void throw_if_null() const
Throw an exception if this object is invalid.
Definition: font_description.h:106
FontStyle
Definition: font_description.h:56
Definition: font_description.h:104
FontDescription clone() const
void set_line_height(float height)
Sets the distance between each line.
void set_subpixel(bool setting=true)
Sets the font subpixel rendering setting (defaults to true)
Definition: font_description.h:92
FontWeight get_weight() const
Returns the font weight.
float get_average_width() const
Returns the font average width.
void set_style(FontStyle setting=FontStyle::normal)
Sets the font style.
FontDescription()
Constructs a font description with default values.
Definition: font_description.h:90
void set_height(float value=20.0f)
Sets the font height.
FontDescription & operator=(const FontDescription ©)
Copy assignment operator (does not copy the description, use clone() if you want that) ...
Definition: font_description.h:107
Charset
Definition: font_description.h:88
bool operator==(const FontDescription &other) const
Returns true if the font is identical Line_height is excluded.
float get_height() const
Returns the font height.
Definition: font_description.h:99
void set_average_width(float value=0.0f)
Sets the font average width.
bool get_anti_alias() const
Get the font anti-alias setting (defaults to true)
FontStyle get_style() const
Returns the font style.