Re: [ft] Possible bug with unhinted scaled metrics

2007-02-22 Thread Damon Chaplin
Thanks for the quick response. I'm actually trying to fix Pango so it can support wysiwyg scaling: http://bugzilla.gnome.org/show_bug.cgi?id=410420 Is there recommend way to use freetype to do that? Damon On Thu, 2007-02-22 at 15:55 +0100, David Turner wrote: > Hello Damon, > > the returned

Re: [ft] Possible bug with unhinted scaled metrics

2007-02-22 Thread David Turner
Hello Damon, the returned 26.6 advance is always rounded, even with FT_LOAD_NO_HINTING. You can however retrieve the linearly scaled value as a 16.16 fixed float number through face->glyph->linearHoriAdvance. This works even with hinted glyphs. just shift it 10 bits to the right to get the equiva

[ft] Possible bug with unhinted scaled metrics

2007-02-22 Thread Damon Chaplin
Hi, If I scale an unhinted font I expect the metrics to scale linearly. But there seem to be slight errors. I've attached a test app to show what I mean. It loads a font face, and uses FT_Set_Char_Size() and FT_Load_Glyph() to get a glyph's metrics at two different sizes. The advance of the seco