     for c in text
       switch c
         when ' '
-          w += @size
+          w += @spaceSize
           continue
         when '\n'
           maxWidth = w if w > maxWidth
           w = 0
-          h += @linesize
+          h += @lineSize
           continue
         when '\t'
-          w += @tabsize
+          w += @tabSize
           continue
 
       char = @chars[c] || @invalid_char


    @invalid_char = @chars[String.fromCharCode(end)]

    @linesize   = @size + (@size >> 2)
    @tabsize    = @size << 2

  # Public: Centers text inside the given rect.
  #

    for c in text
      switch c
        when ' '
          xx += @spaceSize
          continue
        when '\n'
          xx = x
          yy += @lineSize
          continue
        when '\t'
          xx += @tabSize
          continue
 
      char = @chars[c] || @invalid_char
