On 09/23/2013 11:43 AM, Niels Grundtvig Nielsen wrote:
After checking the documentation, I have used the Change Document
Conversion Parameters dialogue for the Convert to PDF, PostScript
parameters and added two parameters:
* body-font-family 'Arial'
* title-font-family 'Arial'
I would say that the quotes are not needed here.
The .pdf persists in giving me output in a serifed default font, so I'm
obviously missing something. (I've already tried setting the values with
and without single quotation marks). Advice welcome! including pointers
towards help pages I may have failed to understand ;-}
Specifying XSLT parameters body-font-family and title-font-family is
indeed required, but this not sufficient due to the nature of PDF.
PDF does not support the Arial font[*], but only the 14 PDF fonts
(Times, Helvetica, Courier, etc). Therefore you need to instruct the
XSL-FO processor (Apache FOP or RenderX XEP) to embed bits of the Arial
font into your PDF.
This is done using "Preferences|Options", "FOP" (or "XEP") section. In
principle, simply clicking the "Use Windows® standard fonts" button
should do the trick.
More information in this FAQ which also applies to your use case:
---
When I convert documents written in Russian (or Polish or Czech or any
non-western language) to PDF, almost all characters are replaced by the
"#" character. Is there a workaround for this problem?
---
http://www.xmlmind.com/xmleditor/faq.html#custom_pdf_fonts
Do not forget to restart XXE before attempting to convert your
document[**] to PDF.
---
[*] May be recent versions of PDF support fonts other than the 14 PDF
standard fonts. I don't know.
[**] You may use XXE or the convertdoc command-line utility for that.
(Command-line utility convertoc is XXE without a GUI.) More information
in http://www.xmlmind.com/xmleditor/_distrib/doc/commands/convertdoc.html
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support