class UIng::FontDescriptor

Overview

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

Defined in:

uing/font_descriptor.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(family : String | Nil = nil, size : Number | Nil = nil, weight : TextWeight | Nil = nil, italic : TextItalic | Nil = nil, stretch : TextStretch | Nil = nil) #

[View source]

Instance Method Detail

def family : String #

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

[View source]
def italic #

[View source]
def italic=(value : TextItalic) #

[View source]
def size #

[View source]
def size=(value : Number) #

[View source]
def snapshot : FontDescriptor #

Returns an independent copy of this descriptor.


[View source]
def stretch #

[View source]
def stretch=(value : TextStretch) #

[View source]
def to_unsafe #

[View source]
def weight #

[View source]
def weight=(value : TextWeight) #

[View source]