[ 
https://issues.apache.org/jira/browse/CONNECTORS-387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190827#comment-13190827
 ] 

Hitoshi Ozawa commented on CONNECTORS-387:
------------------------------------------

Sorry, didn't have too much time this weekend.

This is what I did for JasperServer which had a similar problem.
1. Download IPA Fonts (IPAGTTC00303.zip(4.23 MB)
License is IPA Open Font License which is in standard with OSI. I'm not sure if 
this is Apache compatible or not.
http://ossipedia.ipa.go.jp/ipafont/index.html

2. Download fop
3. Find font names
java -cp 
build\fop.jar;lib\avalon-framework-4.2.0.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.3.1.jar;lib\xmlgraphics-commons-1.4.jar
 org.apache.fop.fonts.apps.TTFReader C:\fonts\IPAGTTC00303\ipag.ttc 
"C:\fonts\IPAGTTC00303\ipag.ttc\ipagothic.xml"
4. Create font metric file
java -cp 
build\fop.jar;lib\avalon-framework-4.2.0.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.3.1.jar;lib\xmlgraphics-commons-1.4.jar
 org.apache.fop.fonts.apps.TTFReader -ttcname "IPAPGothic" 
C:\fonts\IPAGTTC00303\ipag.ttc "C:\fonts\IPAGTTC00303\ipapgothic.xml

5.Edit config.xml
        <!-- IPAPGothic -->
<font metrics-file="ipapgothic.xml"  kerning="yes" 
embed-url="file:///C:/fonts/IPAGTTC00303/ipag.ttc">
     <font-triplet name="IPAPGothic" style="normal" weight="normal"/>
     <font-triplet name="IPAPGothic" style="normal" weight="bold"/>
     <font-triplet name="IPAPGothic" style="normal" weight="100"/>
     <font-triplet name="IPAPGothic" style="normal" weight="200"/>
     <font-triplet name="IPAPGothic" style="normal" weight="300"/>
     <font-triplet name="IPAPGothic" style="normal" weight="400"/>
     <font-triplet name="IPAPGothic" style="normal" weight="500"/>
     <font-triplet name="IPAPGothic" style="normal" weight="600"/>
     <font-triplet name="IPAPGothic" style="normal" weight="700"/>
     <font-triplet name="IPAPGothic" style="normal" weight="800"/>
     <font-triplet name="IPAPGothic" style="normal" weight="900"/>
     <font-triplet name="IPAPGothic" style="italic" weight="normal"/>
     <font-triplet name="IPAPGothic" style="italic" weight="bold"/>
     <font-triplet name="IPAPGothic" style="italic" weight="100"/>
     <font-triplet name="IPAPGothic" style="italic" weight="200"/>
     <font-triplet name="IPAPGothic" style="italic" weight="300"/>
     <font-triplet name="IPAPGothic" style="italic" weight="400"/>
     <font-triplet name="IPAPGothic" style="italic" weight="500"/>
     <font-triplet name="IPAPGothic" style="italic" weight="600"/>
     <font-triplet name="IPAPGothic" style="italic" weight="700"/>
     <font-triplet name="IPAPGothic" style="italic" weight="800"/>
     <font-triplet name="IPAPGothic" style="italic" weight="900"/>
</font>

6. create forrest.properties.xml
<?xml version='1.0'?>
<properties>
  <property name="output.pdf.fontFamily.serif"     value="IPAPGothic"/>
  <property name="output.pdf.fontFamily.sansSerif" value="IPAPGothic"/>
  <property name="output.pdf.fontFamily.monospace" value="IPAPGothic"/>
  <property name="output.pdf.fontFamily.arial" value="IPAPGothic"/>
  <property name="output.pdf.fontFamily.TimesNewRoman" value="IPAPGothic"/>
  <property name="output.pdf.fontFamily.Courier"     value="IPAPGothic"/>
  <property name="output.pdf.fontFamily.arialMT" value="IPAPGothic"/>
  <property name="output.pdf.fontFamily.arial-BoldMT" value="IPAPGothic"/>
  <property name="output.pdf.fontFamily.arial-ItalicMT" value="IPAPGothic"/>
  <property name="output.pdf.fontFamily.TimesNewRomanPSMT" value="IPAPGothic"/>
</properties>
                
> Japanese fonts are missing from the PDF files generated for the site
> --------------------------------------------------------------------
>
>                 Key: CONNECTORS-387
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-387
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: ManifoldCF 0.5
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 0.5
>
>
> Japanese fonts are missing from the PDFs generated for the site.
> This page describes how to fix that:
> http://forrest.apache.org/pluginDocs/plugins_0_90/org.apache.forrest.plugin.output.pdf/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to