class Pango::FontDescription

Overview

A PangoFontDescription describes a font in an implementation-independent manner.

PangoFontDescription 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:

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) #

def self.new #

Class Method Detail

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

def self.g_type : UInt64 #

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


Instance Method Detail

def ==(other : self) : Bool #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def absolute_size=(size : Float64) : Nil #

def better_match(old_match : Pango::FontDescription?, new_match : Pango::FontDescription) : Bool #


def copy_static : Pango::FontDescription? #

def equal(desc2 : Pango::FontDescription) : Bool #

def family : String? #

def family=(family : String) : Nil #

def family_static=(family : String) : Nil #

def finalize #

def free : Nil #

def gravity : Pango::Gravity #

def gravity=(gravity : Pango::Gravity) : Nil #

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.


def merge(desc_to_merge : Pango::FontDescription?, replace_existing : Bool) : Nil #

def merge_static(desc_to_merge : Pango::FontDescription, replace_existing : Bool) : Nil #

def set_fields : Pango::FontMask #

def size : Int32 #

def size=(size : Int32) : Nil #

def size_is_absolute : Bool #

def stretch : Pango::Stretch #

def stretch=(stretch : Pango::Stretch) : Nil #

def style : Pango::Style #

def style=(style : Pango::Style) : Nil #

def to_filename : String #

def to_string : String #

def to_unsafe : Pointer(Void) #

def unset_fields(to_unset : Pango::FontMask) : Nil #

def variant : Pango::Variant #

def variant=(variant : Pango::Variant) : Nil #

def variations : String? #

def variations=(variations : String?) : Nil #

def variations_static=(variations : String) : Nil #

def weight : Pango::Weight #

def weight=(weight : Pango::Weight) : Nil #