interpolation and extrapolation for metafont