Supporting Unlisted CJK Fonts
To support CJK fonts not listed above, do the following:
• Place the font files in the folder specified under TrueType/CID Font Path.
• Extract the cjkmap.properties file from your build JAR file (sree.jar or bisuite.jar).
• Place the cjkmap.properties file within your classpath under /inetsoft/reports/pdf, e.g., 'WEB-INF/classes/inetsoft/reports/pdf/cjkmap.properties'.
• Make an entry for the CJK font as {font name}={encoding}, e.g., DFKMincho\ Std\ W5=kor. (Escape the white spaces using a backslash).
Note: In many cases the actual font name may not be the same as the font file name. To make sure you enter the right name in the properties file. Use the utility TTFontInfo. The correct name will appear under the fontnames[3] heading.
java -cp sree.jar inetsoft.report.pdf.TTFontInfo {FontFileName With Absolute Path}
e.g. java -cp sree.jar inetsoft.report.pdf.TTFontInfo c:/CID/DFKMinchoStd-W5.otf
Sample Output:
Getting font names:[c:/CID/DFKMinchoStd-W5.otf]
fontnames[0]=DFKMincho Std W5
fontnames[1]=DFKMincho Std W5
fontnames[2]=DFKMinchoStd-W5
fontnames[3]=DFKMincho Std W5
Notice how fontnames[3] yields the right font name to enter into the cjkmap.properties file.
| << Supporting CJK Characters | © 1996-2013 InetSoft Technology Corporation (v11.5) | 8.7 Adding PDF Security >> |