[cairo] Showing my ignorance about text rendering again
dov.grobgeld at gmail.com
Wed Feb 24 03:52:55 PST 2010
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.
On Wed, Feb 24, 2010 at 13:45, Peter Clifton <pcjc2 at cam.ac.uk> wrote:
> On Wed, 2010-02-24 at 12:24 +0100, ecir hana wrote:
> > For more, look e.g. here: ("twardoch" is right. If he says something
> > else than I did, he's right again)
> > http://typophile.com/node/27742
> Thanks for the explanation, and the pointer to that reference.. it is
> quite clear.
> I guess for our application (matching pango + cairo rendering on-screen
> to our legacy postscript printing output), I have three options:
> 1. Finish my cairo printing code, and forget about how it used to render
> 2. Force line-spacing on-screen to be that assumed by the printing code
> 3. Don't care too much.. we're printing schematic diagrams, not books!
> (NB: Multi-line text is not a very common case in schematics, and we're
> not talking about a huge difference after all).
> Best regards,
> Peter Clifton
> Electrical Engineering Division,
> Engineering Department,
> University of Cambridge,
> 9, JJ Thomson Avenue,
> CB3 0FA
> Tel: +44 (0)7729 980173 - (No signal in the lab!)
> cairo mailing list
> cairo at cairographics.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo