Fix overflow on fonts that contain more than 256 chars.