This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: global font color change in fo output
- From: Bob Stayton <bobs at caldera dot com>
- To: Etienne Botha <etienne_botha at yahoo dot com>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Tue, 04 Feb 2003 10:30:19 -0800
- Subject: Re: DOCBOOK-APPS: global font color change in fo output
- References: <20030204115755.63453.qmail@web40909.mail.yahoo.com>
On Tue, Feb 04, 2003 at 11:57:55AM +0000, Etienne Botha wrote:
> Hi,
>
> I am trying to create PDF with all the font colors set
> to a non-black default value.
>
> At the moment, I cannot find a short way of
> customizing all fo:block and other fo output in a
> single place.
>
> Is this possible?
Yes, if you set properties in the <fo:root> element,
they apply to the whole document. You would have
to modify the template in fo/docbook.xsl that starts
with:
<xsl:template match="/">
and change:
<fo:root font-family="{$body.font.family}"
font-size="{$body.font.size}"
color="blue" <!-- new property -->
text-align="{$alignment}"
line-height="{$line-height}">
There really should be an attribute set that could
be used in fo:root to set global properties like
this without having to customize this important
and big template.
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com