As I expected, there's nothing unusual about the SVG, and on my system it is shown with correct kerning both in 0.43 and current svn. I can only speculate that something is wrong on your system with either the font, or the freetype/pango installation. Inkscape takes the kerning information from Pango, and there's currently no switch to turn kerning off. So if there's no kerning, most likely Pango provides none. Try upgrading Pango, running in a different locale, or using other fonts. If nothing helps, file a bug with screenshots, SVG, and very detailed info on your platform and all used libs.
Richard, do you have any insights on why this might happen?
On 3/28/06, Hadmut Danisch <hadmut@...1280...> wrote:
On Tue, Mar 28, 2006 at 06:54:29PM -0400, bulia byak wrote:
Weird. Can you please attach the SVG as well?
Sure.
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org
As I expected, there's nothing unusual about the SVG, and on my system it is shown with correct kerning both in 0.43 and current svn. I can only speculate that something is wrong on your system with either the font, or the freetype/pango installation. Inkscape takes the kerning information from Pango, and there's currently no switch to turn kerning off. So if there's no kerning, most likely Pango provides none. Try upgrading Pango, running in a different locale, or using other fonts. If nothing helps, file a bug with screenshots, SVG, and very detailed info on your platform and all used libs.
Richard, do you have any insights on why this might happen?
No, I have no idea why it works for you Bulia. There's no code in Inkscape to do automatic kerning.
Pango requires you to call pango_fc_font_kern_glyphs() to do the kerning, presumably so that applications can implement the 'only kern above x pt' feature. It's not difficult, we just don't do it. Add a feature request.
The only thing I can think that might be happening is that your distro has a specially patched version of Pango which does the kerning without being asked. Slightly unusual, but not inconceivable.
Richard.
The only thing I can think that might be happening is that your distro has a specially patched version of Pango which does the kerning without being asked. Slightly unusual, but not inconceivable.
Kerning is currently broken for TTF fonts without OpenType tables in Pango since 1.11.
Denis Moyogo Jacquerye
On 3/30/06, Richard Hughes <cyreve@...155...> wrote:
Pango requires you to call pango_fc_font_kern_glyphs() to do the kerning, presumably so that applications can implement the 'only kern above x pt' feature. It's not difficult, we just don't do it. Add a feature request.
The only thing I can think that might be happening is that your distro has a specially patched version of Pango which does the kerning without being asked. Slightly unusual, but not inconceivable.
That's very unlikely. I compiled Pango myself from stock sources.
And kerning has _always_ worked for me, ever since Fred switched us to using Pango in version 0.39. I even wrote about it in the release notes:
http://wiki.inkscape.org/wiki/index.php/ReleaseNotes039
So, something very strange is happening. If you say that to enable kerning for everyone is a matter of a single call, then please add this call :) Ideally it should be conditional on the 'kerning' CSS property, but lacking that, I think "always on" is better than "always off".
Or, as another poster in this thread suggests, this may be the case of kerning being broken in a too new version of Pango (mine is 1.10.1).
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org
And kerning has _always_ worked for me, ever since Fred switched us to using Pango in version 0.39. I even wrote about it in the release notes:
OK, I was looking in the wrong place in the Pango sources. It looks as though that kerning function does get called automatically in all releases 1.11.0 and earlier, but not in 1.11.1 and later. The reason why this change was made is very unclear because it's part of a larger checkin, but it does look as though it was done on purpose. See revision 1.21 of pango/modules/basic/basic-fc.c.
As far as I can gather, the simple freetype kerning has been replaced by the opentype pango_ot_ruleset_position() function, which has an entry in the documentation but no explanation as to what it does. It'll be something complicated related to the GPOS opentype table and probably liable to breakage.
In summary then, I now think this is a Pango bug and should be reported to them.
So, something very strange is happening. If you say that to enable kerning for everyone is a matter of a single call, then please add this call :) Ideally it should be conditional on the 'kerning' CSS property, but lacking that, I think "always on" is better than "always off".
I would have done, except I simplified a little. It's one call on Linux, and a great deal of hacking around on Windows.
R.
participants (3)
-
bulia byak
-
Denis Jacquerye
-
Richard Hughes