Fonts in Report Output

Managing Fonts in Oracle Reports 9-5 it to Oracle Reports Builder so that you can assign the font to layout objects when designing the report. Refer to Section 9.2.1, Adding Fonts to Oracle Reports Builder for further information. The process for adding fonts is different on Windows and UNIX: ■ Adding fonts on UNIX ■ Adding fonts on Windows

9.2.2.1 Adding fonts on UNIX

To add TTF fonts: 1. Copy all the TTF and TTC files, which are used in the report, to the REPORTS_ FONT_DIRECTORY. The default font directory is ORACLE_ INSTANCEreportsfonts.

2. Remove any unnecessary aliasing from the uifont.ali file. For example, Arial is

aliased to Helvetica, by default. If your report uses the Arial font, you must remove the aliasing from the uifont.ali file. To add PostScript fonts:

1. Copy the AFM file for the new font to ORACLE_

HOMEguicommontkadminAFM.

2. Add the entry for this new font to the Font information section in the printer

definition PPD file: Font new_font_name Standard 00.1001 Standard ROM Font ... Ensure that the new_font_name given in the PPD file is the same as the AFM file, because Oracle Reports searches for this file based on the font name in the PPD file. Also make sure that the AFM file name does not include the.afm extension. For example, if the AFM file name is CodedreineunBold, then the PPD file should contain: Font CodedreineunBold: Standard 00.1001 Standard ROM

3. If necessary, make changes in the alias file for mapping to this font.

If the layout objects are associated with the same font name as the new font, then mapping is not required. If the fonts for the layout objects are different and the new fonts are desired in the output file instead of the original ones, then you must map the original fonts to the new ones. For example, if the layout objects font is Helvetica and you want newly installed fonts in the output, then you could add the following to the [Printer:PostScript1] section: Helvetica = CodedreineunBold Note: If you use fonts in Oracle Reports Builder that are not available on your runtime platform, you should alias those fonts on the runtime platform. Refer to Section 9.4, Font Aliasing for more information. 9-6 Publishing Reports to the Web with Oracle Reports Services Please note the section will be different if you are using a different PostScript level in your uiprint.txt. Refer to Section 9.4, Font Aliasing . To add PCL fonts: In order to use a new font in Oracle Reports, you must have the HPD printer definition and TFM files for your printer. The HPD file can be copied from an existing one. You must be sure that the file is suitable for your printer; fonts referenced in this file should be available on your printer. If the TFM files fonts are not available on Oracle Reports installation, you must contact your fontprinter supplier. The new TFM files must be added to the HPD file under a unique font name. 1. In the HPD, you will have to add the new font entry. For example if the new font is Codedreineun then include a new line such as: FONT= Codedreineun tfm=9nb17035.tfm 2. Copy the associated TFM file into the TFM directory: ORACLE_HOMEguicommontkadminTFM 3. Modify the alias file, if necessary, as described in Section 9.2.2.1, Adding fonts on UNIX for the PostScript printers. The section in which the mapping is done should be [PCL].

9.2.2.2 Adding fonts on Windows

For adding a new font on Windows, refer to your operating system documentation on adding a new font. If the new font has a character set that is compatible with Oracle Reports Builder, the new font will appear in the font picker.

9.3 Font Configuration Files

This section describes all of the files associated with font configuration for Oracle Reports: ■ uiprint.txt UNIX only ■ screenprinter.ppd UNIX only ■ uifont.ali ■ PPD and AFM files UNIX only ■ HPD and TFM files UNIX only ■ Tk2Motif.rgb UNIX only uiprint.txt UNIX only The printer configuration file contains a list of printers installed for the application along with the type of the printer, its version, and the printer definition file. The list of Note: Beginning in Oracle Reports 11g Release 1 11.1.1, configuration of fonts should be done only through Oracle Enterprise Manager. Refer to Chapter 7, Administering Oracle Reports Services Using Oracle Enterprise Manager , Section 7.9.1, Configuring Fonts for information about updating configuration settings through Oracle Enterprise Manager.