Page 1 of 1

Cannot register otf font

Posted: Thu Jun 09, 2016 5:44 pm
by Edwin
Hi I have downloaded and installed the Omnes otf font we use in our company. The font is available in the windows\fonts directory and works fine. It needs to be registered in the build-in fo processor.

I have followed the instructions https://www.oxygenxml.com/doc/versions/ ... ified.html
abd https://www.oxygenxml.com/doc/versions/ ... uiltin-FOP to no avail.

The simplified solution doesn't do anything

The extended solution comes with an 'java' is not recognized as an internal or external command error operable program or batch file. when i execute the batchfile.

Does anybody have a good procedure to adding a otf font ?

Re: Cannot register otf font

Posted: Fri Jun 10, 2016 11:30 am
by radu_pisoi
Hi,

Could you tell us what type of document you are trying to transform?

Are you using DITA, Docbook, TEI or a custom XML format?

Re: Cannot register otf font

Posted: Fri Jun 10, 2016 11:56 am
by Edwin
Hi Radu,
I'm transforming DITA to PDF

Re: Cannot register otf font

Posted: Fri Jun 10, 2016 12:50 pm
by radu_pisoi
Hi Edwin,

In this case you need also to modify the 'font-mappings.xml' file from the DITA-OT framework that you use.

Code: Select all

DITA_OT_DIR/plugins/org.dita.pdf2/cfg/fo/font-mappings.xml
Briefly, if you want to use your font for all DITA elements: title, list, paragraphs then you should add it as the first entry in all logical font definitions.

A complete procedure is described in our user manual:
http://oxygenxml.com/doc/versions/18.0/ ... e-FOP.html

Re: Cannot register otf font

Posted: Fri Jun 10, 2016 2:47 pm
by Edwin
Hi Radu,
I did that already, so that is not the problem.

I have tried to register another otf font as well, this didn't work either. When I use a true type font like calibri also available the procedures work fine. I cannot successfully register any opentype font.

I'm on a windows 10 machine, installing new otf fonts is not a problem. After installation they are available, for instance in MS Office.

Re: Cannot register otf font

Posted: Fri Jun 10, 2016 3:07 pm
by Edwin
As a test i downloaded the From Cartoon Blocks truetype font from http://www.1001freefonts.com/3d-fonts.php

The result was a successful rendering of my pdf with this font. When I try any otf font it does not. I'm using oXygen 17.1

Re: Cannot register otf font

Posted: Fri Jun 10, 2016 3:49 pm
by radu_pisoi
The Apache FOP processor used to produce the PDF file seems to have limited support for Open Type fonts. Please see the following links:
https://xmlgraphics.apache.org/fop/2.1/ ... t-features
http://apache-fop.1065347.n5.nabble.com ... d1267.html

Could you send us on support@oxygenxml.com the OTF font and 'font-mappings.xml' files? I will try also to see if there is a commercial FO processor with a better support for OTF fonts.

Re: Cannot register otf font

Posted: Fri Jun 10, 2016 4:16 pm
by Edwin
Hi Radu

You're exactly right. I've tried the manual addition of the font and apparently did the right thing because i received the following message
[fop] [ERROR] Anttask - Error rendering fo file: Z:\en-US\temp\topic-pdf\oxygen_dita_temp\topic.fo <org.apache.fop.apps.FOPException: OpenType fonts with CFF data are not supported, yet


I can't send you the font due to our license agreement, you can close the issue.

Re: Cannot register otf font

Posted: Fri Jun 10, 2016 4:49 pm
by radu_pisoi
You can try with a commercial FO processor like Antenna House.

Click the next link if you want to download an evaluation version: https://www.antennahouse.com/product/ahf60/download.htm.