# File lib/extras/font/font.rb, line 88 def draw_centered(x, y, s, str) cx = x - str.length*getWidth*s/2.0 cy = y + getHeight*s/2.0 draw(cx, cy, s, str) end