Setting Arial Font for PDF / MS-Word Exports


 Product:

 Export Utility for Lotus Notes / Domino > Export to PDF > Version All

 Platform(s):

 All

 Edition(s):

 All

 Doc Number:

 1000111
Published 13-Apr-2018

 General Information

This support note contains a sample fopcfg.xml file for setting the font in target PDF and Microsoft Word files to Arial

 Solution

The Fopcfg.xml file contains rendering and font configuration settings used by the 3rd party libraries the Export Utility uses for generating Microsoft Word and PDF files.

Attached to this support note is a sample Fopcfg.xml file which you can use for your exports to Microsoft Word or PDF. The Fopcfg.xml file normally resides in the 'Export' folder under the Lotus Notes client or Domino server Data folder. You can either download the attached file and replace the one on your system with this or edit the file on your system and add the font settings shown below.

Editing the existing Fopcfg.xml file
To edit the existing Fopcfg.xml file follow the steps below:
• Open Windows Explorer on your machine
• Navigate to the 'Export' folder which is located under your Lotus Notes data folder (example: c:\Program Files (x86)\IBM\Lotus\Notes\Data\Export, or c:\Lotus\Notes\Data\Export).
• In the export folder there should be a file called 'fopcfg.xml'
• Open this file using a standard text editor such as Notepad.
• Scroll down through the file and look for the section which begins with the '<renderers>' tag.
• Under this section there will be a sub-section that begins with the '<fonts>' tag.
• In this section is where you will put the font substitution settings included below.

<fonts>
    <!-- Specify the directory / folder containing the system fonts -->
    <!-- <directory>C:\WINDOWS\FONTS</directory> -->
    
    <!-- Arial normal font -->
    <font embed-url="file:///C:/Windows/fonts/arial.ttf" kerning="yes">
        <font-triplet name="Arial" style="normal" weight="normal"/>
        <font-triplet name="Arial" style="normal" weight="400"/>
        <font-triplet name="ArialMT" style="normal" weight="normal"/>
        <font-triplet name="Helvetica" style="normal" weight="normal"/>
        <font-triplet name="Helvetica" style="normal" weight="400"/>
        <font-triplet name="sans-serif" style="normal" weight="normal"/>
        <font-triplet name="sans-serif" style="normal" weight="400"/>
        <font-triplet name="Times-Roman" style="normal" weight="normal"/>
        <font-triplet name="any" style="normal" weight="normal"/>
        <font-triplet name="any" style="normal" weight="400"/>
    </font>
    
    <!-- Arial bold font -->
    <font embed-url="file:///C:/Windows/fonts/arialbd.ttf" kerning="yes">
        <font-triplet name="Arial" style="normal" weight="bold"/>
        <font-triplet name="Arial" style="normal" weight="700"/>
        <font-triplet name="ArialMT" style="normal" weight="bold"/>
        <font-triplet name="Helvetica" style="normal" weight="bold"/>
        <font-triplet name="Helvetica" style="normal" weight="700"/>
        <font-triplet name="sans-serif" style="normal" weight="bold"/>
        <font-triplet name="sans-serif" style="normal" weight="700"/>
        <font-triplet name="Times-Roman" style="normal" weight="bold"/>
        <font-triplet name="any" style="normal" weight="bold"/>
        <font-triplet name="any" style="normal" weight="700"/>
    </font>
    
    <!-- Arial italic font -->
    <font embed-url="file:///C:/Windows/fonts/ariali.ttf" kerning="yes">
        <font-triplet name="Arial" style="italic" weight="normal"/>
        <font-triplet name="Arial" style="italic" weight="400"/>
        <font-triplet name="ArialMT" style="italic" weight="normal"/>
        <font-triplet name="Helvetica" style="italic" weight="normal"/>
        <font-triplet name="Helvetica" style="italic" weight="400"/>
        <font-triplet name="sans-serif" style="italic" weight="normal"/>
        <font-triplet name="sans-serif" style="italic" weight="400"/>
        <font-triplet name="Times-Roman" style="italic" weight="normal"/>
        <font-triplet name="any" style="italic" weight="normal"/>
        <font-triplet name="any" style="italic" weight="400"/>
    </font>
    
    <!-- Arial italic bold font -->
    <font embed-url="file:///C:/Windows/fonts/arialbi.ttf" kerning="yes">
        <font-triplet name="Arial" style="italic" weight="bold"/>
        <font-triplet name="Arial" style="italic" weight="700"/>
        <font-triplet name="ArialMT" style="italic" weight="bold"/>
        <font-triplet name="Helvetica" style="italic" weight="bold"/>
        <font-triplet name="Helvetica" style="italic" weight="700"/>
        <font-triplet name="sans-serif" style="italic" weight="bold"/>
        <font-triplet name="sans-serif" style="italic" weight="700"/>
        <font-triplet name="Times-Roman" style="italic" weight="bold"/>
        <font-triplet name="any" style="italic" weight="bold"/>
        <font-triplet name="any" style="italic" weight="700"/>
    </font>
</fonts>

Downloading the attached Fopcfg.xml file
The attached Fopcfg.xml file may be downloaded and saved to the 'Export' folder under your Lotus Notes or Domino Server data folder. The existing fopcfg.xml file should be overwritten with this file.

fopcfg.xmlfopcfg.xml

Additional Information
Additional information regarding the configuration of font settings can be found in the following support notes:
  • Extended / international characters render as hash patterns when exported to PDF or Word ... Database 'AGECOM Support Notes', View '1. Search', Document 'Extended / international characters render as hash patterns when exported to PDF or Word'
  • Improving Font Quality in PDF Files ... Database 'AGECOM Support Notes', View '1. Search', Document 'Improving Font Quality in PDF Files'



  Related Attachments


© 2018 AGE Computer Consultancy. All rights reserved.
Material may not be reproduced or distributed in any form without permission.