Copy all the TTF and TTC files, which are used in the report, to the REPORTS_

Font Model and Cross-Platform Deployment 12-11

12.4.3 Frequently Asked Questions

This section covers frequently asked questions FAQs pertaining to deploying a report to HTMLCSS, RTF or the Web. Question When I design a report on Windows with font styles such as italic and bold, then run the report on UNIX, I do not see the output as it appeared on Windows. Why? Answer On UNIX, report formatting is done using fonts corresponding AFM files. By default, these AFM files are picked from the ORACLE_HOMEguicommontkadminAFM directory, provided as part of the installation. If the font style used in report does not have a corresponding AFM file on UNIX, the closest matching AFM file is used. For example, if you design a report on Windows with Courier Italic font, then run the report on UNIX, you may see only plain Courier font in the output. This happens because there is no AFM file available for Courier Italic font in the ORACLE_ HOMEguicommontkadminAFM directory, so instead Courier is picked. To work around this issue, you can alias your fonts style to the same style for some other font that has AFM available. For example, you could alias Courier Italic to Times Italic in the global section of uifont.ali. Moreover, on Windows, there are some fonts that have bold, italic, and bold italic versions; for example, Arial has arialbd.ttf Arial bold, ariali.ttf Arial italic, and arialbi.ttf Arial bold italic. Therefore, if you are using any font that has bold, italic, and bold italic TTF files available, you can generate AFM files from these files using ttf2pt1 and use these AFM files on UNIX. Question My report was created in Windows and is deployed on HP-UX 11. Although the font style on HP-UX 11 is correct, the spacing between the lines is inconsistent and some text is unable to fit in the allocated space. How can I fix the spacing so that my text fits correctly? Answer Ensure that you have set up the corresponding AFM files for all the fonts used in your document. Refer to Section 12.4.1, Designing Your Report for more information. Question My report is designed on Windows. When it is deployed on a different platform, it displays garbled output. For example, some fields display, instead of the actual content. Is this a spacing issue? Answer Oracle Reports cannot find the AFM files of the font that you have used in your report. You can verify this by opening the reports HTML source and searching for the font that you have used. Oracle Reports then uses the closest matching font whose metrics are bigger than the original font. Therefore, when the characters cannot fit in the box, a is displayed in the field, instead of the actual output. Ensure that: ■ You have set up the AFM files for all the fonts used in your report. Refer to Section 12.4.1, Designing Your Report for more information.