Hi,

We encountered the problem of using percentage on font-size attribute.
The error is "getBaselength called without context". 

<fo:block>
    <fo:block font-style="normal" space-after="0.1cm"
space-before="0.1cm" font-size="80%" role="html:div" text-align="left">1
Original  hardcopy  to CO 2 Hardcopies to PO and (1) electronic copy to
CO and  PO</fo:block>
  <fo:block font-style="normal" space-after="0.1cm" space-before="0.1cm"
font-size="80%" role="html:div" text-align="left"></fo:block>
</fo:block>

We thought that it might be the parent <fo:block> has no font-size
defined, so we added it as below, but the same error occurred.
   <fo:block font-size="10pt"><fo:block ...
font-size="80%"...>...</fo:block></fo:block>

Two cases can bypass this error:
1. Changing the font-size attribute to a non-percentage (i.e. 10pt or
12px).
2. If the font-size attribute (%) was in an <fo:inline>.
  <fo:block><fo:block font-style="normal" space-after="0.1cm"
space-before="0.1cm"  font-size="10pt" role="html:div"
text-align="left">
  <fo:inline font-weight="bold" role="html:strong" font-size="80%">Type
of Report</fo:inline></fo:block> 
</fo:block>


We are not sure if this is a bug, or we are not using it correctly.

Please help. We really appreciate it.

Henry

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to