make font definition callback wrapper work with current tfm object structure