Cannot register otf font

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
Edwin
Posts: 21

Cannot register otf font

Thu Jun 09, 2016 5:44 pm

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 ?
radu_pisoi
Posts: 336
Location: Craiova

Re: Cannot register otf font

Fri Jun 10, 2016 11:30 am

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?
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Edwin
Posts: 21

Re: Cannot register otf font

Fri Jun 10, 2016 11:56 am

Hi Radu,
I'm transforming DITA to PDF
radu_pisoi
Posts: 336
Location: Craiova

Re: Cannot register otf font

Fri Jun 10, 2016 12:50 pm

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
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Edwin
Posts: 21

Re: Cannot register otf font

Fri Jun 10, 2016 2:47 pm

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.
Edwin
Posts: 21

Re: Cannot register otf font

Fri Jun 10, 2016 3:07 pm

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
radu_pisoi
Posts: 336
Location: Craiova

Re: Cannot register otf font

Fri Jun 10, 2016 3:49 pm

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.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Edwin
Posts: 21

Re: Cannot register otf font

Fri Jun 10, 2016 4:16 pm

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.
radu_pisoi
Posts: 336
Location: Craiova

Re: Cannot register otf font

Fri Jun 10, 2016 4:49 pm

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.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Return to “Common Problems”

Who is online

Users browsing this forum: No registered users and 2 guests