[cairo] toy font fails to display
Chris Wilson
chris at chris-wilson.co.uk
Thu Dec 25 05:23:17 PST 2008
On Thu, 2008-12-25 at 07:59 -0500, James Cloos wrote:
> When I try cairo-view with @cairo: I see only the baseline and the
> two boxes; no glyphs are displayed.
Same here, but only on debian sid/ppc.
> Lsof verifies that LD_LIBRARY_PATH is honoured and the version of
> libcairo.so.2.10901.0 which is in ~/src/cairo/src/.libs is loaded.
Not so for debian sid/amd64. It appears there that for an
application/library compiled against cairo-1.6 (i.e. before the version
number revamp), ld.so will not link it against cairo-1.8.
e.g.:
$ echo -e -n "#include<stdio.h>\n#include<cairo.h>\nint
main(void){return -1==printf (\"C compiled against %s, running with %s
\", CAIRO_VERSION_STRING, cairo_version_string ());}" | gcc -x c -
`pkg-config --libs --cflags cairo` && ./a.out
C compiled against 1.9.1, running with 1.9.1
$ python -c "import cairo; print \"python compiled against %s, running
with %s\" % (cairo.version, cairo.cairo_version_string())"
python compiled against 1.4.12, running with 1.6.4
So Behdad, I hope you don't mind but I'm taking the liberty of
converting the example to C. ;-)
> Everything works as expected if I pass a font fontconfig can find,
> only the toy font fails.
Similarly, it works if I replace "show_text();" with "text_path();
fill();".
So far I'm reading through the xtrace but it's look sane -- it ends with
the expected RenderCompositeGlyphs8 and the src appears to be a Picture
that has been filled with black. I'm currently at a loss to understand
what's happened. (At this point my suspicions are pointnig towards the
xserver.)
--
Chris
More information about the cairo
mailing list