Question & Answer
Question
IGC(Information Govermance Catalog)で、リネージュの表示画面に「インベントリを PDF に保存」の機能がありますが、IGCで設定されたデフォルトのフォントでは表示できない文字があります。PDF で使用するフォントを変更する方法はありますか?
Cause
IGC は日本語表示用に MS Gothic を使用します。したがって、MS Gothic がOSに存在しなかったり、MS Gothic に含まれない文字を表示するときは、文字化けが発生します。
Answer
gov-webapp-gen.jar に含まれる inventory2fo.xsl を編集することで PDF で使用するフォントを変更することができます。
Windows でデフォルトのディレクトリにインストールしている場合は gov-webapp-gen.jar は下記の場所にあります。
- C:\IBM\WebSphere\AppServer\profiles\InfoSphere\lib\iis\110gov
- C:\IBM\WebSphere\AppServer\java\bin\jar.exe
[設定手順]
(1) gov-webapp-gen.jar が存在しているディレクトリに移動します。
(2) gov-webapp-gen.jar のバックアップを保持します。
- 例: copy gov-webapp-gen.jar gov-webapp-gen.jar.org
(3) jar コマンドを使用して、inventory2fo.xsl を抽出します。
- 例: C:\IBM\WebSphere\AppServer\java\bin\jar.exe xvf gov-webapp-gen.jar com/unicorn/webapp/actions/datalineage/report/inventory2fo.xsl
(4) エディタで inventory2fo.xsl を開きます。
- 例: notepad com\unicorn\webapp\actions\datalineage\report\inventory2fo.xsl
(5) font-family 属性に、使用するフォント名を挿入します。(MS Gothic がある場合はその前に挿入します。)
- 例: font-family="Arial,Tahoma,Verdana, sans-serif, MS Mincho, MS Gothic "
(6) font-family 属性が約20箇所あるので、全てにフォント名を挿入し、inventory2fo.xsl を保存します。
(7) 保存した inventory2fo.xsl を gov-webapp-gen.jar に戻します。
- 例: C:\IBM\WebSphere\AppServer\java\bin\jar.exe uf gov-webapp-gen.jar com/unicorn/webapp/actions/datalineage/report/inventory2fo.xsl
(8) WAS を再起動します。
[復帰手順]
(9) バックアップを元に戻し、WAS を再起動します。
- 例: copy gov-webapp-gen.jar.org gov-webapp-gen.jar
Related Information
[{"Product":{"code":"SSZJPZ","label":"IBM InfoSphere Information Server"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Information Governance Catalog","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"11.5;11.3","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21994347