[cairo-bugs] [Bug 21543] wrong font weight for some Win32 fonts in PDF output

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue May 5 06:43:50 PDT 2009


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





--- Comment #3 from Adrian Johnson <ajohnson at redneon.com>  2009-05-05 06:43:48 PST ---
As there is no Arial Unicode Bold font, Windows synthesises the bold from Arial
Unicode. In the PDF backend the fonts are embedded by obtaining the TrueType
font data from Windows. The problem here is that when the TrueType font data
for a synthetic font is requested, Windows provides the font data for the base
font that was used to create the synthetic font.

Testing your example with TrueType font subsetting in cairo disabled produces
the correct result since it forces cairo to embed a new font created from the
outlines returned by GetGlyphOutline(). This suggests that disabling TrueType
subsetting for synthetic fonts would be a reasonable solution. However I am
unable to find any way of determining if the selected font is synthetic.


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


More information about the cairo-bugs mailing list