# File lib/rubygame/sfont.rb, line 201 def string_width(string) w = 0 string.each_byte { |glyph| w += @glyphs["%c"%[glyph]].width } return w end