UIng::FontDescriptor
Inherits Reference < Object
Describes a font and owns its family name until #free is called.
Descriptors yielded by FontButton callbacks and block methods are valid only for the duration of the block. Use #snapshot to retain their values.
Constructors
new(cstruct : LibUI::FontDescriptor = LibUI::FontDescriptor.new)
Sourcenew(family : String | Nil = nil, size : Int32 | Nil = nil, weight : TextWeight | Nil = nil, italic : TextItalic | Nil = nil, stretch : TextStretch | Nil = nil)
SourceInstance methods
family=(value : String)
Sourcefinalize
Sourcefont_button_font_loaded
Sourcefree
Sourceitalic
Sourceitalic=(value)
Sourceload_control_font
Sourceprepare_for_font_button_font
Sourcereleased?
Sourcesize
Sourcesize=(value)
Sourcesnapshot
Returns an independently owned copy that remains valid after a borrowed FontButton callback or block descriptor expires.
stretch
Sourcestretch=(value)
Sourceto_unsafe
Sourceweight
Sourceweight=(value)
Source