On 11/23/2011 02:15 PM, BERGER Mathias wrote:
>
> But I am still having the same problems with the additional line at the end 
> of RTF output documents. I attached my FO and RTF-output and also a 
> screenshot to make the issue more clear. As you can see I am just creating a 
> document with a single block containing one word. When creating the document 
> with XMLMind there is another line added to the document. The first line is 
> the block I set and is correct, with having Arial set. But I am also getting 
> an additional second line, with Times as Font and another font size.
> How can I prevent XMLMind from creating this line?

Sorry but I don't know.


>
> When looking into the RTF in some editor, I can also see that there is a font 
> table added by XMLMind.
>
> {\rtf1\ansi\ansicpg1252\deff0
> {\fonttbl
> \f0\froman\fcharset0 Times;
> \f1\fswiss\fcharset0 Helvetica;
> \f2\fmodern\fcharset0 Courier;
> \f3\ftech\fcharset2 Symbol;
> \f4\fnil\fcharset0 Arial;
> }
>
> When changing f0 to Arial by editing the RTF file it works as intended. I 
> still get an additional line in the output document, but at least it's set to 
> Arial (still with the wrong font size).
>
> How can I prevent XMLMind from adding that certain font table and additional 
> lines to the output document? Is there any configuration to be set? I don't 
> need a font table with 5 different font styles, there should only be Arial 
> used.
>

Sorry but there is no way to remove entries from the above font table.

The only thing you can do is to remap the generic font families used by 
XFC. Example:

fo2rtf \
   "-genericFontFamilies=fantasy=Impact,cursive=Comic Sans MS" \
   font-families.fo font-families2.rtf

gives a font-families2.rtf which starts with:

---
{\fonttbl
\f0\froman\fcharset0 Times New Roman;
\f1\fswiss\fcharset0 Arial;
\f2\fmodern\fcharset0 Courier New;
\f3\fdecor\fcharset0 Impact;
\f4\fscript\fcharset0 Comic Sans MS;
\f5\ftech\fcharset2 Symbol;
\f6\fswiss\fcharset0 Verdana;
\f7\froman\fcharset0 Georgia;
\f8\fmodern\fcharset0 Andale Mono;
}
---

instead of:

---
{\fonttbl
\f0\froman\fcharset0 Times New Roman;
\f1\fswiss\fcharset0 Arial;
\f2\fmodern\fcharset0 Courier New;
\f3\ftech\fcharset2 Symbol;
\f4\fdecor\fcharset0 fantasy;
\f5\fscript\fcharset0 cursive;
\f6\fswiss\fcharset0 Verdana;
\f7\froman\fcharset0 Georgia;
\f8\fmodern\fcharset0 Andale Mono;
}
---

The syntax of -genericFontFamilies is documented here:

http://www.xmlmind.com/foconverter/_distrib/doc/user/command_line_java.html

I don't know if this feature (e.g. remap all font families to Arial) can 
help you.
 
--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support

Reply via email to