Skip to content
bggd edited this page Nov 16, 2013 · 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())

f.text_width(text)

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