From: Maxim S. <mc...@an...> - 2005-09-15 05:19:30
|
Tony, First of all, if you want to change the size gradually, forget about hinting. At all. Smooth scaling and hints are mutually exclusive things. So that, you will not have "crisp" characters. Second, you can use only vector cache in this case. Raster cache is tied to the font size. And the font size in WinAPI can have integral values only. So that, if you want to scale it smoothly you have to scale it in the pipeline. Here you can use any fixed font size, say, 100 pixels, and scale it as you want. McSeem "Tony Juricic" <ton...@ya...> wrote in message news:dgasco$sn4$1...@se...... > I've been playing with truetype_test example and, in particular, I > changed: > m_height.num_steps(32-8); > to: > m_height.num_steps((32-8)*10); > > and the same for width. > > Basically, I am scaling up/down in 0.1 increments/decrements. When going > from point size 9 to point size 10 I want to see point sizes 9.1, 9.2 ... > up to 10. > > However, in truetype_test example character glyphs don't change when going > from point size 9 to point size, say 9.5. Only the white space in between > the text lines changes. > > Now, for reasons that I don't mind explaining but I don't think anybody > particularly cares about, I need a smooth *change in font outline*, when > going from point sizes like 9 and 10 (really, any two point sizes that > differ by 1.) Because of jumps in TTF outline shapes between integral > point sizes I would almost need a sort of smooth morphing. > > I know that this is, in principle, doable because font glyps are filled > Bezier curve paths. > > I'm just looking for Max's and others recommendations on what is the best > way to accomplish this. > > Thanks, > Tony > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download it for free - -and be entered to win a 42" plasma tv or your very > own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php |