2011/05/30

テンプレートビルダーでのフォント・マッピング (Font mapping on Template Builder)

テンプレート・ビルダーでのフォント・マッピングの方法が紹介されていました。
http://flexfields.blogspot.com/2010/12/how-to-configure-new-font-on-bi-desktop.html


手順は、構成ファイル xdo.cfg を作成するのみです。標準構成では、以下のディレクトリに xdo example.cfg が配置されていますので、コピーした上で名前を変更します。
C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config

フォントに関する設定部分を追加・編集します。
※なお、xdo example.cfg にはWindowsのシステムディレクトリが C:\WINNT と記載されています。コピー&ペーストする場合には留意してください。

以下の例では、Times New Roman と郵便バーコードフォントを設定しています。

   <!-- Font setting -->
    <fonts>
      <font family="Times New Roman" style="normal" weight="normal">
       <truetype path="C:\WINDOWS\Fonts\TIMES.ttf" /> 
      </font>


      <font family="yubinbcd" style="normal" weight="normal">
       <truetype path="C:\WINDOWS\Fonts\YUBINBCD.TTF" /> 
      </font>
    </fonts>

なお、xdo example.cfg にはテンポラリ領域として C:\Temp ディレクトリが定義されていますので、必要に応じて定義を編集するか、ディレクトリを作成してください。

その他、フォントマッピングについては過去の記事を参照して下さい。
PDF出力でのフォント・マッピング (Font Mapping)
11g でのフォント・マッピング (Font mapping on BI Publisher 11g)


[Summary]
Not only on the BI Publisher server, font mapping is also available on Template Builder.


Save the configuration file xdo.cfg.  You can copy xdo example.cfg to create the file.  Please see the example above for the font setting.  By default, these files are in:

C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config


Note: xdo example.cfg defines work area as C:/Temp.  You need to modify this setting, or create that directory to avoid runtime error.

0 件のコメント:

コメントを投稿