font deprecated code fixes