class

UIng::FontDescriptor

Inherits UIng::BlockConstructor < Reference < Object

A Crystal-managed font description. FontButton results and callback values can be retained without manual freeing.

Constructors

new(*args, &)
Source
new(*args, **kwargs, &)
Source
new(family : String | Nil = nil, size : Number | Nil = nil, weight : TextWeight | Nil = nil, italic : TextItalic | Nil = nil, stretch : TextStretch | Nil = nil)
Source

Instance methods

family
Source
family=(value : String)
Source
italic
Source
italic=(value : TextItalic)
Source
size
Source
size=(value : Number)
Source
snapshot

Returns an independent copy of this descriptor.

Source
stretch
Source
stretch=(value : TextStretch)
Source
to_unsafe
Source
weight
Source
weight=(value : TextWeight)
Source