Skip to content
rpg edited this page Mar 30, 2012 · 1 revision

Nogroup

cheetah.newFont

cheetah.newFont(img)

Create new font.

Parameters

  • img
    Image object

Return value

Font object


cheetah.fontWidth

cheetah.fontWidth(f, str)

Calculate width of string.

Parameters

  • f
    Font object
  • str
    string

Return value

length of string in pixels

Clone this wiki locally