Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
crono
master
Crono
ArtSupplies
Color
RGB
RGBA
Font
GameMath
Image
Sprite
Tiles
TSize
Renderer
Song
Sound
Window
Generated using Crystal 1.10.1
2024-01-09 19:03:15 UTC
class
Crono::
Font
Crono::Font
Reference
Object
Defined in:
crono/font.cr
Constructors
.new
(path : String, font_size : Int32)
Instance Method Summary
#color
: Crono::Color::RGBA
#color=
(color : Crono::Color::RGBA)
#draw
#text
: String
#text=
(text : String)
Constructor Detail
def self.
new
(path : String, font_size : Int32)
#
[
View source
]
Instance Method Detail
def
color
:
Crono::Color::RGBA
#
[
View source
]
def
color=
(color :
Crono::Color::RGBA
)
#
[
View source
]
def
draw
#
[
View source
]
def
text
: String
#
[
View source
]
def
text=
(text : String)
#
[
View source
]