Converted all old font rendering method into newer font rendering calculations.