01.02.2013 Views

Publishing Reports to the Web - Downloads - Oracle

Publishing Reports to the Web - Downloads - Oracle

Publishing Reports to the Web - Downloads - Oracle

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.4.5 uifont.ali<br />

Printer-Related Files<br />

To install <strong>the</strong> AFM file, just copy it <strong>to</strong> <strong>the</strong> AFM file location, which is listed in Verifying<br />

<strong>the</strong> Printer Setup for <strong>Oracle</strong> <strong>Reports</strong>. The name of <strong>the</strong> file must match name of <strong>the</strong> font<br />

without <strong>the</strong> .afm extension. For example, if <strong>the</strong> font name is CodedreineunBold,<br />

<strong>the</strong> file name must be CodedreineunBold.<br />

To verify <strong>the</strong> font name, you can look for <strong>the</strong> fontname string in <strong>the</strong> AFM file. Please<br />

note that <strong>the</strong> AFM files are not font files, <strong>the</strong>y are metrics files, which give information<br />

on how <strong>to</strong> properly format <strong>the</strong> characters for <strong>the</strong> printer. If you have an AFM file for a<br />

font, but <strong>the</strong> font is not present on <strong>the</strong> printer, <strong>Oracle</strong> <strong>Reports</strong> cannot generate <strong>the</strong><br />

correct output on <strong>the</strong> printer because of <strong>the</strong> font metrics mismatch. You must ensure<br />

that <strong>the</strong> font used <strong>to</strong> design <strong>the</strong> report is also available on <strong>the</strong> printer.<br />

5.4.4.2 TFM files<br />

PCL5 uses HPD and TFM files. The HPD file contains <strong>the</strong> list of available fonts for <strong>the</strong><br />

printer and each font refers <strong>to</strong> a TFM file. TFM files serve <strong>the</strong> same purpose as Adobe's<br />

AFM files, with each file listing information about a single font. The HPD file is an<br />

ASCII file, which can be edited, but <strong>the</strong> TFM file is a binary file, which cannot be<br />

edited.<br />

To use a new font in <strong>Oracle</strong> <strong>Reports</strong> and have it appear correctly in PCL output, you<br />

need <strong>the</strong> HPD and TFM files for <strong>the</strong> printer. You can copy an HPD file from an existing<br />

one, provided that you ensure it is suitable for your printer. The fonts specified in <strong>the</strong><br />

HPD file must be available on <strong>the</strong> printer.<br />

<strong>Oracle</strong> <strong>Reports</strong> includes a common set of TFM files. If you need o<strong>the</strong>r font metrics files<br />

for your printer, you should obtain <strong>the</strong>m from your font or printer vendor. To install<br />

<strong>the</strong> TFM file, just copy it <strong>to</strong> <strong>the</strong> TFM file location, which is listed in Verifying <strong>the</strong><br />

Printer Setup for <strong>Oracle</strong> <strong>Reports</strong>.<br />

The uifont.ali file defines <strong>the</strong> font aliases used by <strong>Oracle</strong> <strong>Reports</strong>. It is an<br />

extremely useful <strong>to</strong>ol for cross-platform development because it enables you <strong>to</strong> define<br />

which fonts <strong>to</strong> substitute when a particular font is unavailable. uifont.ali is located<br />

in:<br />

ORACLE_HOME/guicommon9/tk90/admin<br />

To alias a font, use <strong>the</strong> following syntax:<br />

source_font = destination_font<br />

For each font, you may also specify <strong>the</strong> following attributes:<br />

face.size.style.weight.width.character_set<br />

Styles may also be combined using a plus sign + <strong>to</strong> delimit <strong>the</strong> styles. For example:<br />

Arial.Italic+Overstrike = Helvetica.12.Italic.Bold<br />

This entry maps any Arial font that has both Italic and Overstrike styles <strong>to</strong> a 12-point,<br />

bold, and italic Helvetica font. Font faces can be case sensitive depending on <strong>the</strong><br />

platform and <strong>the</strong> surface, i.e., printer or system.<br />

See Also: Chapter 4, "Managing Fonts in <strong>Oracle</strong> <strong>Reports</strong>"<br />

For more font-related information.<br />

Printing on UNIX with <strong>Oracle</strong> <strong>Reports</strong> 5-11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!