added measureString to Font class