OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] v5, pdf output, font-family config

Hi Bob
On 02/03/13 18:59, Bob Stayton wrote:
Hi Dave,
I am not able to duplicate this problem.  When I put a comma-separated
list of fonts in that param, the commas appear in the FO file.  Looking
at the code, it just copies that param without any further processing.
I cannot explain where your commas went.

But I don't see how this list is going to accomplish your goal. The
formatter does not use that list to select bold and italic.  The
association of italic and bold comes in the font configuration file for
the formatter, using the currently selected font name to find by
association the italic or bold variant.

Using AH
I have set up normal, italic and bold separate fonts in the font-config.xml file.

I need to give the formatter a request to make use of that config information (if that makes sense).
font-family does that? I.e. choose from this list as appropriate.

Hence I need
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"; font-family="aries, ariesItalic, ariesBoldOSfigs, din,Symbol,ZapfDingbats"

I think it's pagesetup.xsl the body.fontset param?
merges the fonts?

It does copy the contents of $body.font.family through (including commas!), so it must have been something odd I was doing.

Now working, thanks for your reply.
Sorry to waste bwidth.


Bob Stayton
Sagehill Enterprises

From: "davep" <davep@dpawson.co.uk>
Sent: Saturday, March 02, 2013 7:41 AM
To: <docbook-apps@lists.oasis-open.org>
Subject: [docbook-apps] v5, pdf output, font-family config

In my import stylesheet I have

<xsl:param name="body.font.family">aries, ariesItalic,

I.e. I want the formatter to use different fonts to match
normal, body, bold.

when I look at the xxx.fo file I see

font-family="aries ariesItalic ariesBoldOSfigs,Symbol,ZapfDingbats"

So although the font list is comma separated from the
<xsl:param name="title.font.family">ariesSCB</xsl:param>
<xsl:param name="dingbat.font.family">ZapfDingbats</xsl:param>
<xsl:param name="monospace.font.family">din</xsl:param>

specs, for some reason the comma separated list in $body.font.family
has the comma's stripped?

is there any reason for this... and how can I stop it please?


Dave Pawson

To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


Dave Pawson

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]