Optimizing fonts for mobile devices