Font Availability On Different Platforms

Font Model and Cross-Platform Deployment 12-9 Use a True Type to Type 1 font converter utility to convert the TTF files to AFM files. For example, ttf2pt1. 2. Post-conversion, remove the .afm extension in the AFM file name. For example: 3. Copy the converted AFM files to the ORACLE_ HOMEguicommontkadminAFM directory. 4. Edit the screenprinter.ppd file with any text editor. Ensure that the PPDHPD file used contains an entry for each AFM or TFM file that you use in your report. PPDHPD files are configuration files containing printer driver settings and the list of all the fonts supported by the printer. Navigate to the to the Font Information section in the PPD file and add the necessary entries for the font files in the following format: FONTNAME:ENCODING:VERSION:LOCATION For example: Font Arial: Standard Version 2.76 Standard ROM Font CourierNew: Standard Version 2.76 Standard ROM Ensure that the AFM file name exactly matches the font name specified in the PPD file as Oracle Reports searches for this file based on the font name in the PPD file. Table 12–3 Post Conversion Font File Names Before Converting After Converting After Renaming arial.ttf arial.afm Arial cour.ttf cour.afm CourierNew Note: If you have defined a default printer by including an entry in ORACLE_HOMEguicommontkadminuiprint.txt, you must add the appropriate entries in the printers PPD file for a PostScript printer or in the HPD file for a PCL printer. Beginning with Oracle Reports 10g Release 1 9.0.4, if you have not set up a default printer: ■ A default printer surface that mimics the screen screenprinter.ppd is used for formatting. ■ You must add the necessary font and resolution entries in the screenprinter.ppd file. The PPD and HPD files are located at: ■ ORACLE_ INSTANCEconfigFRComponentfrcommonguicommontk admin ■ ORACLE_HOMEguicommontkadmin Oracle Reports searches for HPD or PPD files initially in the Oracle Instance location and then in the Oracle Home location. Refer to Section 10.8.1, ScreenPrinter for more information on the screenprinter.ppd file. 12-10 Publishing Reports to the Web with Oracle Reports Services 5. Ensure that the fonts used in your report are not aliased. For example, edit the uifont.ali file and comment the entries in the [Global] section, where Arial and Courier New are aliased to Helvetica and Courier, respectively. [ Global ] Put mappings for all surfaces here. Mapping from MS Windows Arial = helvetica Courier New = courier This ensures that Arial and Courier New are not aliased to any other font. 6. Run the report. http:mywebserver.com:reportsrwservlet?server=myserver+report=homemyreport stest.rdf+authid=hrhrmydb+desformat=htmlcss+destype=cache The HTMLCSS output of your report will look exactly the same as the one generated on Windows.

12.4.2.1 Troubleshooting Information

If you encounter deployment issues, review the following troubleshooting information: ■ If you do not get the correct fonts in the HTMLCSS output, set the environment variable DEBUG_SLFIND to a log file name, for example, debug.txt, and run the report. The font files that are looked up while parsing the PPD file as well as the fonts used will be written to the log file debug.txt. Specifically, check for the following:

1. The PPD file that you modified should be picked up. If it is not picked up it is

a configuration issue. Refer to Chapter 9, Managing Fonts in Oracle Reports .

2. The AFM files that you have copied to AFM directory should be picked up

next. See Chapter 10, Printing on UNIX with Oracle Reports for more information on DEBUG_SLFIND. Note: The uifont.ali file is located in the following directory on Windows and UNIX: ■ On windows: ORACLE_ INSTANCE\config\FRComponent\frcommon\tools\common ■ On UNIX: ORACLE_ INSTANCEconfigFRComponentfrcommonguicommontk admin Use font aliasing only if you are unable to generate the AFM file for a particular font. You can then alias the missing font to the closest match. The fonts must be made available on the machine displaying the report output and not necessarily on the machine generating the report output.