[cairo-bugs] [Bug 10118] New: Missing bitmapped characters in pdf output

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Feb 28 00:28:46 PST 2007


http://bugs.freedesktop.org/show_bug.cgi?id=10118

           Summary: Missing bitmapped characters in pdf output
           Product: cairo
           Version: 1.3.9
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: pdf backend
        AssignedTo: krh at bitplanet.net
        ReportedBy: timothee.lecomte at ens.fr
         QAContact: cairo-bugs at cairographics.org


For an image surface, pango has some sort of fallback mechanism if the select
font does not contain the character I want to draw. For example, I want to
display a Japanese character, and I select the "Bitstream Vera Sans" font which
does not contain it, and I get a bitmapped character obviously coming from
another font.
My problem is that this fallback mechanism does not seem to exist for pdf
surfaces. Instead of a bitmapped Japanese character, there is no displayed
character.

This looks like a bug. It has been reported to the cairo mailing-list, I am
filling a bug report so that it doesn't get lost.

Here are pdf and image outputs of my sample application:
http://tipote.free.fr/cairopdf_utf8.pdf
http://tipote.free.fr/wxt_utf8.png

Adrian Johnson looked at the pdf output and replied:
"The bitmap font is embedded in your the PDF. The reason you can't see it
is that the bitmap glyphs have a y coordinate of -78338. I have
reproduced this problem using the mixed.pango from
http://lists.freedesktop.org/archives/cairo/2007-February/009476.html
when I don't have any Chinese TrueType fonts installed. I have confirmed
that Pango is passing in the invalid y coordinate to cairo_show_glyphs()
when using the PDF or PS surface."

It may look like a pango bug, but I'm posting this as a cairo bug since it
appears with a pdf surface but not for an image surface.

Thanks for your help.

Best regards,
Timothée Lecomte

P.S.: The versions that I am using are:
cairo 1.3.12
pango 1.4.10
fontconfig 2.4.2
freetype 2.3.1
looking at the pdf with evince 0.6.1 / poppler 0.5.4


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the cairo-bugs mailing list