Philippe Nobili wrote:
> We use XMLMind professional edition 4.0.0. We could not find how to add 
> the character fonts we need in the FOP processor bundled with XMLMind
> (we use Apache FOP 1.x plugin). As a consequence, all greek characters
> (in our case) are replaced by sharp characters ('#') in the published
> PDF. Where should we install the missing FOP fonts before appending them
> to the value of "symbol.font.family"  ?
> 
> Any help will be appreciated.
> 

I followed the instructions found here:
http://xmlgraphics.apache.org/fop/0.95/fonts.html

[1] I've created fop.xconf in ~/.fop/:
---
<?xml version="1.0"?>
<fop version="1.0">
  <renderers>
    <renderer mime="application/pdf">
      <fonts>

<directory>/home/hussein/src/4xxe_addon/mathml_config/fonts</directory>

        <auto-detect/>
      </fonts>
    </renderer>
  </renderers>
</fop>
---

[2] I've added a "configuration" parameter in
XXE_install_dir/addon/config/docbook/xslMenu.incl:

---
        <!-- If XEP plug-in has not been installed, try FOP plug-in. -->
        <processFO processor="FOP" file="__doc.fo" to="__doc.%0">
          <parameter name="renderer">%0</parameter>
          <parameter name="strict-validation">false</parameter>
          <parameter name="configuration"
            url="true">file:/home/hussein/.fop/fop.xconf</parameter>
          <parameterGroup name="docb.toPS.FOPParameters" />
        </processFO>
---
(There are cleaner ways to do this.)

See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/processFO.html

[3] Using "Options|Customize Configuration|Change Document Conversion
Parameters", I've set "symbol.font.family" first to "DejaVu Sans", then
to "OpenSymbol". See
http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xmleditapp.kit.part.ConversionParametersEditor.html

In both cases, I got warnings like these ones:

---
[FOP WARNING] Font 'OpenSymbol,normal,400' not found. Substituting with
'any,normal,400'.
[FOP WARNING] Font 'OpenSymbol,normal,700' not found. Substituting with
'any,normal,700'.
---

and what's generated by FOP (0.95, I've tested all this with XXE v4.1 to
be relased in a few days) looks like the attachment.

If you find a way to make this work, please send me an email explaining
how you did it.

On the other hand, no problem with RenderX XEP (see other attachment).



---
PS: I didn't attempt to generate XML font metrics by hand and didn't
specify things like:

  <font metrics-url="file:///C:/myfonts/FTL_____.xml" kerning="yes"
      embed-url="file:///C:/myfonts/FTL_____.pfb">
     <font-triplet name="FrutigerLight" style="normal" weight="normal"/>
  </font>

May be all this machinery is still really needed.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: Greek.xml
Type: text/xml
Size: 836 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20080922/c057f5c4/attachment.xml
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Greek_fop.pdf
Type: application/pdf
Size: 5855 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20080922/c057f5c4/attachment.pdf
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Greek_xep.pdf
Type: application/pdf
Size: 8784 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20080922/c057f5c4/attachment-0001.pdf
 

Reply via email to