Bold
"Sharmila Pandith"<[email protected]> Thu, 3 Oct 2002 19:14:21 UT
| Newsgroups | gmane.text.xml.jfor.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
For some reason JFOR is having trouble when it encounters font-weight="bold".
Ex: XSL:FO for a simple statement like "this is bold text" is:
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="spm1" page-height="792.0pt" page-width="612.0pt">
<fo:region-body column-count="1" margin-bottom="72.0pt" margin-left="90.0pt" margin-right="90.0pt" margin-top="72.0pt" region-name="region-body" />
<fo:region-start extent="80pt" padding-left="20pt" reference-orientation="90" region-name="regstart" />
<fo:region-end extent="80pt" padding-right="20pt" reference-orientation="270" region-name="regend" />
</fo:simple-page-master>
</fo:layout-master-set>
- <fo:page-sequence master-reference="spm1">
- <fo:static-content flow-name="regstart">
<fo:block text-align="center">Novosoft RTF2FO [evaluation version]</fo:block>
</fo:static-content>
- <fo:static-content flow-name="regend">
<fo:block />
</fo:static-content>
- <fo:flow flow-name="region-body">
- <fo:block color="black" font-family="Arial, Helvetica" font-size="12.0pt" font-style="normal" font-variant="normal" font-weight="bold" orphans="1" text-align="start" text-indent="0pt" vertical-align="baseline" white-space-collapse="false" widows="1">
<fo:block>this is bold text</fo:block>
<fo:block id="end" />
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
When I run it thru' JFor it outputs the following:
{\rtf1 \ansi {\*\userprops {\propname jforVersion}\proptype30 {\staticval jfor V0.7.1 - see http://www.jfor.org}}{\colortbl; \red0\green0\blue0;\red255\green255\blue255;\red255\green0\blue0;\red0\green255\blue0;\red0\green0\blue255;\red0\green255\blue255;\red255\green0\blue255;\red255\green255\blue0;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}{\fonttbl; {\f0 arial}{\f1 symbol}{\f2 times new roman}{\f3 arial, helvetica}{\f4 arial black, helvetica}{\f5 arial narrow, helvetica}{\f6 book antiqua, times}{\f7 century gothic, helvetica}{\f8 comic sans ms, }{\f9 courier, courier}{\f10 courier new, courier}{\f11 garamond, times}{\f12 georgia, times}{\f13 haettenschweiler, helvetica}{\f14 impact, helvetica}{\f15 lucida console, courier}}\paperw12240 \paperh15840 \sectd {\qc {Novosoft RTF2FO [evaluation version]}\par }{\ql {this is bold text}\par }{!
\ql {\*\bkmkstart end}{\*\bkmkend end}\par }\sect }
I noticed that it has lot more fonts than what is specified in the XSL:FO fonttable. And, it is not recognizing "bold".
Any thoughts why this might be happening?
TIA,
S P
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf