struct Engine::Font

Included Modules

Defined in:

engine/engine.cr

Constant Summary

BOLD = 1
ITALIC = 2
UNDERLINED = 4

Constructors

Instance Method Summary

Instance methods inherited from module Engine::FontDrawText

draw_text(text, pos : Vector2) draw_text, draw_text_boxed(text, box : AABB, halign : HAlign = HAlign::Left, valign : VAlign = VAlign::Center) draw_text_boxed, measure(text) measure

Constructor Detail

def self.new(res : FontResource, *, char_size : Int32 = 24, color : Engine::Color = Engine::Color::WHITE, styles : Int32 = 0, kx : Float32 | Int32 = 1, ky : Float32 | Int32 = 1) #

[View source]
def self.new(res : FontResource, *, dont_create : Bool) #

[View source]

Instance Method Detail

def char_size=(value : Int32) #

[View source]
def color=(value : Engine::Color) #

[View source]
def kx=(value : Float32 | Int32) #

[View source]
def ky=(value : Float32 | Int32) #

[View source]
def styles=(value : Int32) #

[View source]
def to_unsafe #

[View source]