changed using function to get font offset for drawing