37 class FontDescription_Impl;
187 std::shared_ptr<FontDescription_Impl> impl;
Charset
Definition: font_description.h:75
Definition: font_description.h:85
Definition: font_description.h:86
bool is_null() const
Returns true if this object is invalid.
Definition: font_description.h:99
float escapement() const
Returns the font escapement.
FontWeight
Definition: font_description.h:39
Definition: font_description.h:87
void set_escapement(float value)
Sets the font escapement.
float line_height() const
Returns the distance between each line.
float height() const
Returns the font height.
Definition: font_description.h:82
Definition: font_description.h:90
Definition: font_description.h:89
Definition: font_description.h:77
FontDescription clone() const
void set_height(float value=20.0f)
Sets the font height.
bool operator==(const FontDescription &other) const
Returns true if the font is identical Line_height is excluded.
FontWeight weight() const
Returns the font weight.
Definition: font_description.h:79
bool anti_alias() const
Get the font anti-alias setting (defaults to true)
void set_style(FontStyle setting=FontStyle::normal)
Sets the font style.
std::string unique_id() const
Returns an unique string identifying this font description.
void set_average_width(float value=0.0f)
Sets the font average width.
Definition: font_description.h:78
Definition: font_description.h:92
FontDescription()
Constructs a font description with default values.
Definition: font_description.h:88
void set_orientation(float value)
Sets the font orientation.
FontStyle style() const
Returns the font style.
float orientation() const
Returns the font orientation.
Definition: font_description.h:93
static FontDescription create_null_object()
Create null object.
void set_charset(Charset new_charset)
Sets the font charset (defaults to charset_default)
Definition: font_description.h:84
Definition: font_description.h:94
Definition: font_description.h:91
float average_width() const
Returns the font average width.
void set_line_height(float height)
Sets the distance between each line.
FontDescription & operator=(const FontDescription ©)
Copy assignment operator (does not copy the description, use clone() if you want that) ...
void set_subpixel(bool setting=true)
Sets the font subpixel rendering setting (defaults to true)
Definition: font_description.h:95
void throw_if_null() const
Throw an exception if this object is invalid.
Definition: font_description.h:80
FontStyle
Definition: font_description.h:52
Definition: font_description.h:81
Charset charset() const
Get the font charset
virtual ~FontDescription()
void set_anti_alias(bool setting=true)
Sets the font anti-alias setting (defaults to true)
void set_weight(FontWeight value=FontWeight::normal)
Sets the font weight.
bool subpixel() const
Get the font subpixel rendering setting (defaults to true)
Font description class.
Definition: font_description.h:62
Definition: font_description.h:83
Definition: Application/application.h:35