[PATCH:xorg-docs] Add fop.xsl stylesheet to set fonts in ps & pdf output

Alan Coopersmith alan.coopersmith at oracle.com
Fri Dec 17 14:01:58 PST 2010

Matt Dew wrote:
> I'm able to get the Chinese characters to show up in the PDFs by
> adding the Chinese font 'AR PL UMing CN' to the symbol.font.family.
> <xsl:param name="body.font.family">DejaVu Serif</xsl:param>
> <xsl:param name="symbol.font.family">Times,Symbol,GNU Unifont,AR PL
> UMing CN</xsl:param>

The Chinese was showing up for me with GNU Unifont, but not a very
good quality rendering - the AR PL... fonts are better.   For some
reason, on my system the arphic/uming.ttf font has the family name
of "AR PL ShanHeiSun Uni", not the Uming name you saw, so I needed
this to get it to work for me:

  <xsl:param name="symbol.font.family">serif,Symbol,AR PL UMing CN,AR PL
ShanHeiSun Uni,GNU Unifont</xsl:param>

It doesn't complain about not finding the font under the Uming name so
it seems to be safe for people without all the alternative fonts installed.

I'll go ahead and push this for now, and let further fine tuning of the
fonts happen after the 7.6 release, since I think we're looking pretty
good now.   Thanks for all your help here.

	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System

More information about the xorg-devel mailing list