on March 23, 2005 at 8:00 AM PST
I'm basically animating a text string by both paning and zooming on it over multiple images/frames. I have starting and ending positions, starting and ending scale factors, a duration, and a frame rate. I interpolate linearly to determine each frame's text position and size and apply a corresponding transform on a Graphics2D object before drawing the text (for each frame).
My issue is that a zoom on text is not smooth at all since the text glyphs actually change as size increases. So as the zoom increases, letters jitter.
I have tried various approaches, including setting the fractional metrics hint. I would be satisfied with scaling a fixed text shape using nearest neighbor, ie. I don't need to increase a font's resolution/point size as I zoom in. But I'm not sure how to do this.
Note that I actually also use a background image under the text that is also paned and zoomed.