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, &)
Sourcenew(*args, **kwargs, &)
Sourcenew(family : String | Nil = nil, size : Number | Nil = nil, weight : TextWeight | Nil = nil, italic : TextItalic | Nil = nil, stretch : TextStretch | Nil = nil)
SourceInstance methods
family
Sourcefamily=(value : String)
Sourceitalic
Sourceitalic=(value : TextItalic)
Sourcesize
Sourcesize=(value : Number)
Sourcestretch
Sourcestretch=(value : TextStretch)
Sourceto_unsafe
Sourceweight
Sourceweight=(value : TextWeight)
Source