font-family and font-weight attributes

View: New views
2 Messages — Rating Filter:   Alert me  

font-family and font-weight attributes

by Tobias Anstett [k15t.com] :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I defined the following font-family for a certain fo:block element in
my customization layer:
<...>Helvetica Black, 'Helvetica Black', Arial Black, 'Arial Black',
Helvetica, Arial, sans-serif</...>

As far as I understood the mechanism, the processor will try to use
the first value and if not available falls recursively back to the
next one. The problem is, that the processor is not able to find those
XXX Black fonts, although they are available on my system.

The second problem I have is related to the font-weight which could be
either lighter, normal, bold or bolder. In my case only the normal and
bold granularity seem to work. Is the font-weight only supported by
some font-families and not all?


Cheers,
Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...


Re: font-family and font-weight attributes

by Thomas Schraitle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Tobias,

another try. :)

Sunday 30 August 2009
>
> I defined the following font-family for a certain fo:block element in
> my customization layer:
> <...>Helvetica Black, 'Helvetica Black', Arial Black, 'Arial Black',
> Helvetica, Arial, sans-serif</...>
>
> As far as I understood the mechanism, the processor will try to use
> the first value and if not available falls recursively back to the
> next one.

This is correct, when font-selection-strategy is set to "character-by-
character". This should be usually the case (attribute set "root.properties"
in fo/param.xsl.)


> The problem is, that the processor is not able to find those
> XXX Black fonts, although they are available on my system.

Have you configured your fonts for your FO formatter? Which one do you use?
FOP, XEP, ...?

Maybe the following URL could help:

http://www.sagehill.net/docbookxsl/AddFont.html


> The second problem I have is related to the font-weight which could be
> either lighter, normal, bold or bolder. In my case only the normal and
> bold granularity seem to work. Is the font-weight only supported by
> some font-families and not all?

For example, in my recent DocBook XML book I've used different font weights
which I marked with the weight attribute (XEP). The value varies from 300 to
900. This has worked very well. So it should work. :)


Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...