![]() |
![]() |
Public Member Functions | |
FontDescription () | |
FontDescription (PangoFontDescription* gobject, bool make_a_copy=true) | |
FontDescription (const FontDescription& other) | |
FontDescription& | operator= (const FontDescription& other) |
~FontDescription () | |
void | swap (FontDescription& other) |
PangoFontDescription* | gobj () |
Provides access to the underlying C instance. | |
const PangoFontDescription* | gobj () const |
Provides access to the underlying C instance. | |
PangoFontDescription* | gobj_copy () const |
FontDescription (const Glib::ustring& font_name) | |
Constructs a font description from a string representation. | |
guint | hash () const |
void | set_family (const Glib::ustring& family) |
Glib::ustring | get_family () const |
void | set_style (Style style) |
Style | get_style () const |
void | set_variant (Variant variant) |
Variant | get_variant () const |
void | set_weight (Weight weight) |
Weight | get_weight () const |
void | set_stretch (Stretch stretch) |
Stretch | get_stretch () const |
void | set_size (int size) |
int | get_size () const |
FontMask | get_set_fields () const |
void | unset_fields (FontMask to_unset) |
void | merge (const FontDescription& desc_to_merge, bool replace_existing) |
bool | better_match (const FontDescription& old_match, const FontDescription& new_match) const |
Glib::ustring | to_string () const |
Glib::ustring | to_filename () const |
Protected Attributes | |
PangoFontDescription* | gobject_ |
Related Functions | |
(Note that these are not member functions.) | |
bool | operator== (const FontDescription& lhs, const FontDescription& rhs) |
bool | operator!= (const FontDescription& lhs, const FontDescription& rhs) |
void | swap (FontDescription& lhs, FontDescription& rhs) |
Pango::FontDescription | wrap (PangoFontDescription* object, bool take_copy=false) |
It is used both to list what fonts are available on the system and also for specifying the characteristics of a font to load.
|
|
|
|
|
|
|
|
|
Constructs a font description from a string representation. font_name must have the form "[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]", where FAMILY-LIST is a comma separated list of families optionally terminated by a comma, STYLE_OPTIONS is a whitespace separated list of words where each WORD describes one of style, variant, weight, or stretch, and SIZE is an decimal number (size in points). Any one of the options may be absent. If FAMILY-LIST is absent, then the family_name field of the resulting font description will be initialized to 0. If STYLE-OPTIONS is missing, then all style options will be set to the default values. If SIZE is missing, the size in the resulting font description will be set to 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Provides access to the underlying C instance.
|
|
Provides access to the underlying C instance.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|