Added font variable into writeVertical()