struct UI::Font

Overview

Value type representing a font specification

Defined in:

ui/view.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(family : String = "system", size : Float64 = 17.0, weight : Symbol = :regular, italic : Bool = false) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(family _family = @family, size _size = @size, weight _weight = @weight, italic _italic = @italic) #

[View source]
def family : String #

def italic : Bool #

def size : Float64 #

def weight : Symbol #