Looks like that pango stuff would probably help what I was doing, too. I never got to worrying about rendering fonts, just representing them in the SVG file.
On Tue, 2008-05-13 at 14:54 -0300, Felipe Sanches wrote:The font data can all be fed to cairo using the user-font support that I
>
> What is needed to make inkscape render this? I suppose that I should
> provide the kerning info to cairo userfonts and then cairo-user-fonts
> would call my glyph-rendering functions providing me the proper x,y
> coordinates. But how do I enable this behaviour just for Super Sans
> font? I guess there must be a way of registering new fonts with pango.
> I just don't see exactly how these pieces fit together.
committed to master last week. So you have some code to write already.
You need to provide the render_glyph(). If you don't have kerning,
providing unicode_to_glyph() would be enough, but for kerning, you need
to use the full text_to_glyphs() method.
The Pango bits to make pango use cairo user-fonts don't exist yet. This
is the bug tracking that:
http://bugzilla.gnome.org/show_bug.cgi?id=347237
While I want to fix that bug this cycle, I don't have a estimate for it
yet, and it's not on my plate for the next few weeks...
Hope that helps.
--
behdad
http://behdad.org/
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759