[cairo] scale with text
damon at karuna.eclipse.co.uk
Tue Feb 20 03:01:13 PST 2007
On Sat, 2007-02-17 at 14:01 -0800, Carl Worth wrote:
> On Sat, 17 Feb 2007 21:03:47 +0100, Tobias Ceglarek wrote:
> > How can I zoom the cairo surface with all its elements (text, paths, ..)
> > keeping the ratios of sizes?
> 3. Stop using the toy API (use cairo_show_glyphs instead of cairo_show_text)
> If you really want to enforce constraints on the positioning of
> your glyphs, then you really don't want to be using cairo_show_text
> anyway. Instead, you can use cairo_show_glyphs to individually
> position each glyph.
> It's a fair amount of extra work to use cairo_show_glyphs instead,
> (you have to do your own mapping from characters to font glyph IDs,
> for example), so it's often wise to adopt a library such as pango
> that does those tasks for you.
Unfortunately Pango still seems to have bugs in this area.
I've attached a test program that results in different layouts at
different zoom settings for me.
I'd really like to get this fixed, so if anyone has any ideas let me
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2282 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070220/7e662b76/test-pango-cairo.c
More information about the cairo