This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] could anybody plz declare the behavior of $body.fontset
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: "Sebastian Fey" <fey at parsytec dot de>, "Docbook-Apps \(E-Mail\)" <docbook-apps at lists dot oasis-open dot org>
- Date: Sat, 6 Mar 2004 18:11:58 -0800
- Subject: Re: [docbook-apps] could anybody plz declare the behavior of $body.fontset
- References: <53DD404D1B0B67479AD684BFFA54858B24299C@srvac03.parsytec.local>
The body.fontset is not really a parameter to be customized. It is an
internal variable that combines the body.font.family value and the
symbol.font.family into a font list. If you want to change the body font,
then use the 'body.font.family' parameter.
I think body.fontset already does what you want. That is, if you don't
customize, you should get these properties in your fo:root:
font-family="serif,Symbol,ZapfDingbats"
font-selection-strategy="character-by-character"
The second property causes the XSL-FO processor to automatically search
among the fonts in the list for a character. But if you look at the FOP
compliance chart at:
http://xml.apache.org/fop/compliance.html
you will see that font-selection-strategy is not supported in FOP.
If you want to change to Symbol font when using FOP, I think you need to
wrap your custom bullet character in an fo:inline with its font-family
property specified as 'Symbol'.
I have no idea where the 'Times' value that you are seeing is coming from,
because that string does not appear anywhere in the stylesheet distribution.
The default body font is 'serif'. Are you sure there isn't another
customization taking place here?
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Sebastian Fey" <fey@parsytec.de>
To: "Docbook-Apps (E-Mail)" <docbook-apps@lists.oasis-open.org>
Sent: Friday, March 05, 2004 6:45 AM
Subject: [docbook-apps] could anybody plz declare the behavior of
$body.fontset
hi,
im just trying to add a new font to my fo-stylesheets ('Symbol' for
list-bullets).
but whatever i do (what the complete guide says) the only font-family
<fo:root> gets is "Times"
body.fontset is declared in pagesetup.xsl (besides: why not in param.xsl?)
---
<!--<xsl:param name="body.fontset">
<xsl:value-of select="$body.font.family"/>
<xsl:if test="$body.font.family != ''
and $symbol.font.family != ''">,</xsl:if>
<xsl:value-of select="$symbol.font.family"/>
</xsl:param>-->
<xsl:param name="body.fontset" select="'Arial'" />
---
(ive changed it to the easier statement to be sure it has the value
"Arial".)
body.fontset is declared as a top-level elemet - not in a template - so it
cant (?) get another value than its initial value. (?)
if i search all the stylesheet files, i do only find _one_ string '
name="body.fontset" ' (pagesetup.xsl) imho this ensures, that body.fontset
is not used as a param in any call-template statement (which could change
its value(?) )
whatever, i added a <xsl:message> in docbook.xsl which outputs the value of
body.fontset, and it is ... "Times" :/
i changed this line
<xsl:param name="body.fontset" select="'Arial'" />
to
<xsl:variable name="body.fontset" select="'Arial'" />
now xsl:message outputs "Arial" ...
well, maybe this is more XSLT-stuff but db, but you know the stylesheets
better anyone else ...
this takes me about 2.5 hrs now, got enough :)
thx,
Sebastian
To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit
http://www.oasis-open.org/mlmanage/.
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.