font: Rethink the font API to improve performance.