class
Crame::Font
- Crame::Font
- Reference
- Object
Overview
A Font is an object you put into your Text to style it (and make it visible).
Defined in:
crame/font.crConstructors
-
.new(path : String | Path, size : Float64 = 12)
Creates a new
Fontlocated to the givenpath.
Instance Method Summary
- #finalize
-
#kerning=(kerning : Bool)
Toggles whether
selfshould support kerning or not. -
#kerning? : Bool
Returns
trueifselfhas kerning support,falseotherwise. -
#style : Style
Returns the style of
self. -
#style=(style : Style)
Sets the new font style onto
self. - #to_unsafe : Pointer(LibSdl3TTF::Font)
Constructor Detail
def self.new(path : String | Path, size : Float64 = 12)
#
Creates a new Font located to the given path.