class Crame::Font

Overview

A Font is an object you put into your Text to style it (and make it visible).

Defined in:

crame/font.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(path : String | Path, size : Float64 = 12) #

Creates a new Font located to the given path.


Instance Method Detail

def finalize #

def kerning=(kerning : Bool) #

Toggles whether self should support kerning or not.


def kerning? : Bool #

Returns true if self has kerning support, false otherwise.


def style : Style #

Returns the style of self.


def style=(style : Style) #

Sets the new font style onto self.


def to_unsafe : Pointer(LibSdl3TTF::Font) #