Make globals static. Fix the long standing off by one error when retrieving the glyph width.