On Tue, 2003-12-09 at 00:33, Nathan Hurst wrote:
http://www.pango.org/layout.shtml
call this for each run in your layout:
PangoLayoutRun http://developer.gnome.org/doc/API/2.0/pango/pango-Layout-Objects.html#PangoLayoutRun* pango_layout_iter_get_run (PangoLayoutIter http://developer.gnome.org/doc/API/2.0/pango/pango-Layout-Objects.html#PangoLayoutIter *iter);
A layout run is equivalent to a glyph string:
A glyph string is a list of ints, which are indexs into something... I think you use these as indices into a PangoFont and then need to work out how to get the glyph out of freetype.
Ok, I haven't explored that region yet :)
Hrm, doesn't look quite as bad as I had thought, actually...
In the case of the Freetype backend, we'd get the FT_Face with pango_ft2_font_get_face(), and I assume we can use FreeType2 facilities at that point to get glyph outlines without too much trouble.
With Win32, we can at least use pango_win32_font_logfont() to get a LOGFONT * structure, but I'm not sure how to get from there to the HFONT we need for use with GetGlyphOutline()...
-mental