[cairo-bugs] [Bug 104042] text failing to display on SVG and X11 surface even though it works correctly on PDF and PS surfaces

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Dec 28 02:50:31 UTC 2017


--- Comment #3 from Antony Lee <anntzer.lee at gmail.com> ---
Created attachment 136417
  --> https://bugs.freedesktop.org/attachment.cgi?id=136417&action=edit
minimal example reproducing the issue.

I managed to find a self-contained way to reproduce the issue, as documented in
the attached source.

Compile and run with
  $ gcc main.c -g $(pkg-config --cflags cairo-ft) $(pkg-config --libs cairo-ft)
-o main
  $ ./main
Inspect the contents of /tmp/test.png, /tmp/test1.png, /tmp/test.svg,
/tmp/test1.svg.  Only the last one is missing text (this is the
bug). cairo-script output is also generated (for reference) to

The program writes "hello world" to an image, an SVG and a script surface,
either directly, or via a recording surface used as pattern.

My investigations indicate that for the issue to appear, it is necessary
1. the recording surface is unbounded, and
2. the recording surface has content type CAIRO_CONTENT_ALPHA.

You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo-bugs/attachments/20171228/5dfee995/attachment.html>

More information about the cairo-bugs mailing list