[cairo] text to postscript rendering
Jürgen Ladstätter
info at innova-studios.com
Fri Feb 29 01:22:28 PST 2008
Hi there again,
i played a little bit with pango_cairo now and found no function for using
different fonts inside of a text. I could call the layout function everytime
i use a different font, but the text is then not drawn after the last
characters. Is there any function that would do this? Or is there a function
that gives me the XY coordinates of the last letter written?
Kind regards, juergen
-----Ursprüngliche Nachricht-----
Von: Behdad Esfahbod [mailto:behdad.esfahbod at gmail.com] Im Auftrag von
Behdad Esfahbod
Gesendet: Donnerstag, 28. Februar 2008 10:44
An: info at innova-studios.com
Cc: 'Carl Worth'; cairo at cairographics.org
Betreff: Re: [cairo] text to postscript rendering
On Thu, 2008-02-28 at 04:35 -0500, Jürgen Ladstätter wrote:
> pango_cairo_show_layout_line (cr, pango_layout_get_line (layout,
0));
Replace this with:
pango_cairo_layout_line_path (cr, pango_layout_get_line (layout, 0));
cairo_fill (cr);
--
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
More information about the cairo
mailing list