font-weight, font-style, and font-size are authomaticcaly inherited, They only have to be included when their values are changed. Remove all
"font-weight="inherit" font-style="inherit" font-size="inherit" and your fo works OK
 
Peter
-----Original Message-----
From: Henrik Olsson [mailto:[EMAIL PROTECTED]
Sent: 17 December 2002 12:57
To: [EMAIL PROTECTED]
Subject: Font problem


Hi im trying to use inherit in attributes font-weight, font-style, as I understand it's supposed to be allowed.

But im getting this error when I'm tryuing to render anything and the wrong font turns up

[ERROR] defaulted font to any,normal,normal
[ERROR] unknown font Times,inherit,inherit so defaulted font to any

Is this a bug or am I doing some thing wrong?

Example:


<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" text-decoration="none" font-weight="normal" font-style="normal" font-size="12.0pt" font-family="Times">
<fo:layout-master-set font-weight="inherit" font-style="inherit" font-size="inherit" color="#000000" background-color="#ffffff">
<fo:page-sequence-master master-name="vldt-sequence" font-weight="inherit" font-style="inherit" font-size="inherit">
<fo:repeatable-page-master-reference master-reference="repeat-page" font-weight="inherit" font-style="inherit" font-size="inherit"/>
</fo:page-sequence-master>
<fo:simple-page-master page-width="29.7cm" page-height="21.0cm" master-name="repeat-page" margin-top="0.2cm" margin-right="1.0cm" margin-left="1.0cm" margin-bottom="0.2cm" margin="2.0cm" font-weight="inherit" font-style="inherit" font-size="inherit">
<fo:region-body region-name="xsl-region-body" margin-top="3.0cm" margin-bottom="1.0cm" font-weight="inherit" font-style="inherit" font-size="inherit"/>
<fo:region-before region-name="repeat-page-head" font-weight="inherit" font-style="inherit" font-size="inherit" extent="3.0cm"/>
<fo:region-after region-name="repeat-page-foot" font-weight="inherit" font-style="inherit" font-size="inherit" extent="1.0cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="vldt-sequence" initial-page-number="1" font-weight="inherit" font-style="inherit" font-size="inherit">
<fo:static-content font-weight="inherit" font-style="inherit" font-size="inherit" flow-name="repeat-page-head">
<fo:block-container width="2.1759333333333335cm" white-space-collapse="false" top="0.5cm" position="absolute" left="3.0cm" height="0.5842cm" font-weight="inherit" font-style="inherit" font-size="inherit" border-style="none">
<fo:block white-space-collapse="false" font-weight="inherit" font-style="inherit" font-size="inherit">Calc fact</fo:block>
</fo:block-container>
</fo:static-content>
<fo:static-content font-weight="inherit" font-style="inherit" font-size="inherit" flow-name="repeat-page-foot"/>
<fo:flow font-weight="inherit" font-style="inherit" font-size="inherit" flow-name="xsl-region-body">
<fo:block id="lastPage"/>
</fo:flow>
</fo:page-sequence>
</fo:root>

Reply via email to