class Pango::FontDescription

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.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

[View source]

Class Method Detail

def self.from_string(str : String) : Pango::FontDescription #

[View source]
def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


[View source]

Instance Method Detail

def absolute_size=(size : Float64) : Nil #

[View source]
def better_match(old_match : Pango::FontDescription | Nil, new_match : Pango::FontDescription) : Bool #

[View source]
def copy : Pango::FontDescription | Nil #

[View source]
def copy_static : Pango::FontDescription | Nil #

[View source]
def equal(desc2 : Pango::FontDescription) : Bool #

[View source]
def family : String | Nil #

[View source]
def family=(family : String) : Nil #

[View source]
def family_static=(family : String) : Nil #

[View source]
def finalize #

[View source]
def free : Nil #

[View source]
def gravity : Pango::Gravity #

[View source]
def gravity=(gravity : Pango::Gravity) : Nil #

[View source]
def hash : UInt32 #
Description copied from class Object

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.


[View source]
def merge(desc_to_merge : Pango::FontDescription | Nil, replace_existing : Bool) : Nil #

[View source]
def merge_static(desc_to_merge : Pango::FontDescription, replace_existing : Bool) : Nil #

[View source]
def set_fields : Pango::FontMask #

[View source]
def size : Int32 #

[View source]
def size=(size : Int32) : Nil #

[View source]
def size_is_absolute : Bool #

[View source]
def stretch : Pango::Stretch #

[View source]
def stretch=(stretch : Pango::Stretch) : Nil #

[View source]
def style : Pango::Style #

[View source]
def style=(style : Pango::Style) : Nil #

[View source]
def to_filename : String #

[View source]
def to_string : String #

[View source]
def to_unsafe : Pointer(Void) #

[View source]
def unset_fields(to_unset : Pango::FontMask) : Nil #

[View source]
def variant : Pango::Variant #

[View source]
def variant=(variant : Pango::Variant) : Nil #

[View source]
def variations : String | Nil #

[View source]
def variations=(variations : String | Nil) : Nil #

[View source]
def variations_static=(variations : String) : Nil #

[View source]
def weight : Pango::Weight #

[View source]
def weight=(weight : Pango::Weight) : Nil #

[View source]