class Pango::FontDescription
- Pango::FontDescription
- Reference
- Object
Overview
A Pango::FontDescription
describes a font in an implementation-independent
manner.
Pango::FontDescription
structures are used both to list what fonts are
available on the system and also for specifying the characteristics of
a font to load.
Defined in:
lib/gi-crystal/src/auto/pango-1.0/font_description.crConstructors
Class Method Summary
- .from_string(str : String) : Pango::FontDescription
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
- #absolute_size=(size : Float64) : Nil
- #better_match(old_match : Pango::FontDescription | Nil, new_match : Pango::FontDescription) : Bool
- #copy : Pango::FontDescription | Nil
- #copy_static : Pango::FontDescription | Nil
- #equal(desc2 : Pango::FontDescription) : Bool
- #family : String | Nil
- #family=(family : String) : Nil
- #family_static=(family : String) : Nil
- #finalize
- #free : Nil
- #gravity : Pango::Gravity
- #gravity=(gravity : Pango::Gravity) : Nil
-
#hash : UInt32
Generates an
UInt64
hash value for this object. - #merge(desc_to_merge : Pango::FontDescription | Nil, replace_existing : Bool) : Nil
- #merge_static(desc_to_merge : Pango::FontDescription, replace_existing : Bool) : Nil
- #set_fields : Pango::FontMask
- #size : Int32
- #size=(size : Int32) : Nil
- #size_is_absolute : Bool
- #stretch : Pango::Stretch
- #stretch=(stretch : Pango::Stretch) : Nil
- #style : Pango::Style
- #style=(style : Pango::Style) : Nil
- #to_filename : String
- #to_string : String
- #to_unsafe : Pointer(Void)
- #unset_fields(to_unset : Pango::FontMask) : Nil
- #variant : Pango::Variant
- #variant=(variant : Pango::Variant) : Nil
- #variations : String | Nil
- #variations=(variations : String | Nil) : Nil
- #variations_static=(variations : String) : Nil
- #weight : Pango::Weight
- #weight=(weight : Pango::Weight) : Nil
Constructor Detail
Class Method Detail
Returns the type id (GType) registered in GLib type system.
Instance Method Detail
Generates an UInt64
hash value for this object.
This method must have the property that a == b
implies a.hash == b.hash
.
The hash value is used along with ==
by the Hash
class to determine if two objects
reference the same hash key.
Subclasses must not override this method. Instead, they must define hash(hasher)
,
though usually the macro def_hash
can be used to generate this method.