exporting function to draw font and glyphs