[xep-support] Re: Adding Japanese fonts

Kevin Brown kevin at renderx.com
Wed Jun 14 10:37:41 PDT 2017


Please post the whole fonts section.
That error means it cannot find the font.
Look up the parent elements for xml:base and see if you did not insert this
fragment into another section where the xml:base sets the directory to
something you do not expect.

Kevin Brown
RenderX

-----Original Message-----
From: Xep-support [mailto:xep-support-bounces at renderx.com] On Behalf Of Mark
Giffin
Sent: Tuesday, June 13, 2017 11:45 PM
To: RenderX Community Support List <xep-support at renderx.com>
Subject: [xep-support] Adding Japanese fonts

I'm using XEP 4.22 inside of the DITA Open Toolkit and I'm trying to get it
to use Japanese fonts by configuring xep.xml. I have this under my <fonts>
element:

         <!-- Japanese open type font. -->
     <font-group label="Japanese Open Type" embed="false">
       <font-family name="KozminPro">
         <font><font-data otf="KozMinPr6N-Regular.otf"/></font>
         <font style="italic"><font-data
otf="KozMinPr6N-Regular.otf"/></font>
         <font weight="bold"><font-data otf="KozGoPr6N-Medium.otf"/></font>
         <font weight="bold" style="italic"><font-data
otf="KozGoPr6N-Medium.otf"/></font>
       </font-family>
     </font-group>

It's PDF output and the font seems to be installed on my Windows 7 machine.
KozGoPr6N-Medium.otf and another similar file are in the XEP fonts
directory.

The PDF comes out with none of the Japanese characters in the original XML
files, but does display the occasional English word that is in the XML.

I get errors like this from the DITA OT:

transform.fo2pdf.xep:
       [xep] Processing
C:\Users\Mark\Documents\clients\cloudera\altus-data-engr-docs-ja/temp/pdf/to
pic.fo
to
C:\Users\Mark\Documents\clients\cloudera\altus-data-engr-docs-ja\out\pdf/alt
us-dataengr.pdf
       [xep] [XEPJ001W][WARN] could not find any font family matching
"KozMinProVI-Regular,ArialUnicodeMS,Batang"; replaced by Helvetica ...

The OT's font mapping file has this:

     <physical-font char-set="Japanese">
         <font-face>KozMinProVI-Regular</font-face>
       </physical-font>

Thanks,
Mark


_______________________________________________
(*) To unsubscribe, please visit
http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service
http://w ww.renderx.com/terms-of-service.html



More information about the Xep-support mailing list