<div dir="ltr">Pango allows you to get one line at a time from a layout through the PangoLayoutLine. There is also cairo support for rendering PangoLayoutLine's. So if you know what line spacing you want, it should be trivial to get the same linespacing through pango/cairo.<br>
<br>Regards,<br>Dov<br><br><div class="gmail_quote">On Wed, Feb 24, 2010 at 13:45, Peter Clifton <span dir="ltr"><<a href="mailto:pcjc2@cam.ac.uk">pcjc2@cam.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Wed, 2010-02-24 at 12:24 +0100, ecir hana wrote:<br>
<br>
> For more, look e.g. here: ("twardoch" is right. If he says something<br>
> else than I did, he's right again)<br>
> <a href="http://typophile.com/node/27742" target="_blank">http://typophile.com/node/27742</a><br>
<br>
</div>Thanks for the explanation, and the pointer to that reference.. it is<br>
quite clear.<br>
<br>
I guess for our application (matching pango + cairo rendering on-screen<br>
to our legacy postscript printing output), I have three options:<br>
<br>
1. Finish my cairo printing code, and forget about how it used to render<br>
2. Force line-spacing on-screen to be that assumed by the printing code<br>
3. Don't care too much.. we're printing schematic diagrams, not books!<br>
<br>
(NB: Multi-line text is not a very common case in schematics, and we're<br>
not talking about a huge difference after all).<br>
<div class="im"><br>
<br>
Best regards,<br>
<br>
--<br>
Peter Clifton<br>
<br>
Electrical Engineering Division,<br>
Engineering Department,<br>
University of Cambridge,<br>
9, JJ Thomson Avenue,<br>
Cambridge<br>
CB3 0FA<br>
<br>
Tel: +44 (0)7729 980173 - (No signal in the lab!)<br>
<br>
--<br>
</div><div><div></div><div class="h5">cairo mailing list<br>
<a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br>
<a href="http://lists.cairographics.org/mailman/listinfo/cairo" target="_blank">http://lists.cairographics.org/mailman/listinfo/cairo</a><br>
</div></div></blockquote></div><br></div>