TIMOB-14680 fixed font object to accept strings for handling dp, px, cm, em, pt