40 class FontDescription_Impl;
103 explicit operator bool()
const {
return bool(impl); }
191 std::shared_ptr<FontDescription_Impl> impl;
Top-level window class.
Definition display_window.h:101
void set_average_width(float value=0.0f)
Sets the font average width.
FontStyle get_style() const
Returns the font style.
bool operator==(const FontDescription &other) const
Returns true if the font is identical Line_height is excluded.
FontWeight get_weight() const
Returns the font weight.
FontDescription()
Constructs a font description with default values.
float get_average_width() const
Returns the font average width.
static FontDescription create_null_object()
Create null object.
void set_weight(FontWeight value=FontWeight::normal)
Sets the font weight.
float get_line_height() const
Returns the distance between each line.
void set_orientation(float value)
Sets the font orientation.
bool get_anti_alias() const
Get the font anti-alias setting (defaults to true)
float get_orientation() const
Returns the font orientation.
FontDescription clone() const
virtual ~FontDescription()
void set_height(float value=20.0f)
Sets the font height.
float get_height() const
Returns the font height.
void set_charset(Charset new_charset)
Sets the font charset (defaults to charset_default)
void set_style(FontStyle setting=FontStyle::normal)
Sets the font style.
bool is_null() const
Returns true if this object is invalid.
Definition font_description.h:102
Charset
Definition font_description.h:79
@ charset_greek
Definition font_description.h:86
@ charset_russian
Definition font_description.h:90
@ charset_chinesebig5
Definition font_description.h:83
@ charset_turkish
Definition font_description.h:93
@ charset_ansi
Definition font_description.h:81
@ charset_hangul
Definition font_description.h:87
@ charset_easteurope
Definition font_description.h:84
@ charset_gb2312
Definition font_description.h:85
@ charset_symbol
Definition font_description.h:92
@ charset_thai
Definition font_description.h:98
@ charset_arabic
Definition font_description.h:96
@ charset_baltic
Definition font_description.h:82
@ charset_vietnamese
Definition font_description.h:94
@ charset_oem
Definition font_description.h:89
@ charset_default
Definition font_description.h:80
@ charset_mac
Definition font_description.h:88
@ charset_hebrew
Definition font_description.h:97
@ charset_shiftjis
Definition font_description.h:91
@ charset_johab
Definition font_description.h:95
float get_escapement() const
Returns the font escapement.
Charset get_charset() const
\biref Get the font charset
void set_escapement(float value)
Sets the font escapement.
void set_line_height(float height)
Sets the distance between each line.
std::string get_unique_id() const
Returns an unique string identifying this font description.
void set_subpixel(bool setting=true)
Sets the font subpixel rendering setting (defaults to true)
bool get_subpixel() const
Get the font subpixel rendering setting (defaults to true)
FontDescription & operator=(const FontDescription ©)
Copy assignment operator (does not copy the description, use clone() if you want that)
void set_anti_alias(bool setting=true)
Sets the font anti-alias setting (defaults to true)
void throw_if_null() const
Throw an exception if this object is invalid.
FontWeight
Definition font_description.h:43
FontStyle
Definition font_description.h:56
@ medium
Definition font_description.h:48
@ light
Definition font_description.h:46
@ semi_bold
Definition font_description.h:49
@ thin
Definition font_description.h:44
@ bold
Definition font_description.h:50
@ heavy
Definition font_description.h:52
@ extra_light
Definition font_description.h:45
@ extra_bold
Definition font_description.h:51
@ normal
Definition font_description.h:47
@ italic
Definition font_description.h:58
@ oblique
Definition font_description.h:59
@ normal
Definition font_description.h:57