MenTaLguY wrote:
On Mon, 2003-12-08 at 23:43, Nathan Hurst wrote:
Easy, you create a pangocontext, put the text (including font and style markup) using pango_context_set_markup in, generate a pangolayout and you can access everything (glyphs, line spacing and extents).
Can you give me an example of extracting the glyph outlines from a pango layout?
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 :)
njh