Number: 1648
Title: Different glyph outputs from cairo and gd
Submitter: Ron Newman
Date: Wed May 13 16:04:08 2009
Subsys: Output generation
Version: 2.23
System: *-*-
Severity: minor
Problem:
libgd and cairo produce different font glyphs even when using the same fonts. The input file uses both Times-Roman and URW Gothic L. Cairo resolves both to /usr/X11/lib/X11/fonts/TTF/Vera.ttf. Libgd resolves the latter to /usr/X11/lib/X11/fonts/TTF/Vera.ttf, but the former is resolved to /Library/Fonts/Times New Roman.ttf.

The two output files show the results from -Tgif and -Tgif:gd. The two outputs are different. For the second node, even though both outputs use the same font, the glyphs are different.

The libgd behavior is identical using the Graphviz libgd and the one on the system.
Input file: b1648.dot
Output file: b1648.gif
Comments:
[erg] Comparing the Times-Roman nodes, where glyphs appear in both outputs, against the Unicode standard, it is clear that libgd is getting the correct glyphs and that cairo is putting up incorrect glyphs. Apparently, Vera.ttf does not have valid glyphs for those characters, hence the blanks.
Owner: *
Status: *