Skip to content
bggd edited this page Jan 16, 2014 · 7 revisions
# Class Methods

Font.load(filepath)

# Instance Attributes

f = Font.load("/usr/share/fonts/truetype/fonts-japanese-gothic.ttf")

f.h

# Instance Methods

# align - :left, :center, :right
f.draw(x, y, text, align: :left, color:Color.rgb(255, 255, 255))

f.text_width(text)

f.to_image(text, color = Color.rgb(255, 255, 255))
Clone this wiki locally