font: rename some of font struct's fields

Also change fonts to store glyph indices, instead of pointers, for its
charset mapping.