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.

Using Fonts<br />

Note: Similarly for PCL printers, <strong>the</strong> HP printer definition file<br />

(glue file) is loaded and all <strong>the</strong> fonts defined in <strong>the</strong> file are also<br />

loaded. While looking for a font, <strong>Oracle</strong> <strong>Reports</strong> searches for an<br />

entry in <strong>the</strong> HPD file with <strong>the</strong> font name and accordingly takes <strong>the</strong><br />

font if <strong>the</strong> TFM file for this font is also found. O<strong>the</strong>rwise, <strong>Oracle</strong><br />

<strong>Reports</strong> matches this font <strong>to</strong> <strong>the</strong> closest available one.<br />

Once <strong>the</strong> list of available fonts is generated, <strong>the</strong> mapped font is searched for in this list<br />

of fonts and, again, <strong>the</strong> AFM files are read for <strong>the</strong> purpose of calculating <strong>the</strong> text size<br />

and weight.<br />

Substituting fonts<br />

If a particular font is needed but not found in <strong>the</strong> PPD file or if an AFM file is not<br />

found, <strong>Oracle</strong> <strong>Reports</strong> will look for <strong>the</strong> nearest matching font according <strong>to</strong> its matching<br />

rules. For example, suppose a report is originally designed with a Korean font SimSun<br />

and in <strong>the</strong> uifont.ali file no mapping for this font is found. <strong>Oracle</strong> <strong>Reports</strong> will<br />

look for <strong>the</strong> font SimSun in <strong>the</strong> list of available fonts generated by <strong>the</strong> Font lookup<br />

algorithm. If this font name is not in that list, <strong>Oracle</strong> <strong>Reports</strong> tries <strong>to</strong> look for <strong>the</strong> closest<br />

matching font from <strong>the</strong> list of fonts given in <strong>the</strong> printer definition file.<br />

For <strong>the</strong> SimSun font, <strong>the</strong> character set is 850. If it cannot find any matching font for this<br />

character set, <strong>Oracle</strong> <strong>Reports</strong> searches for a font that has a character set for <strong>the</strong><br />

environment in which <strong>the</strong> application is running. After a set of fonts with a similar<br />

character set is found, <strong>Oracle</strong> <strong>Reports</strong> picks <strong>the</strong> closest match <strong>to</strong> <strong>the</strong> requested font<br />

based on <strong>the</strong> font weight, style, etc. If more than one font has <strong>the</strong> same parameters,<br />

<strong>Oracle</strong> <strong>Reports</strong> picks <strong>the</strong> first one and uses it instead of <strong>the</strong> original font.<br />

Font matching rules<br />

When attempting <strong>to</strong> match a font, <strong>Oracle</strong> <strong>Reports</strong> will try <strong>to</strong> find <strong>the</strong> closest match<br />

according <strong>to</strong> <strong>the</strong> following criteria for fonts with <strong>the</strong> same character set:<br />

fontface > fontsize > fontstyle > fontweight > fontwidth<br />

If <strong>Oracle</strong> <strong>Reports</strong> can't match <strong>the</strong> font face, it will try <strong>to</strong> match <strong>the</strong> font size; if it can't<br />

match <strong>the</strong> size, it will try <strong>to</strong> match <strong>the</strong> font style; and so on.<br />

If a font matches <strong>the</strong> font size but nothing else and ano<strong>the</strong>r font matches <strong>the</strong> style,<br />

weight, and width but not <strong>the</strong> font size, <strong>the</strong>n <strong>Oracle</strong> <strong>Reports</strong> will pick <strong>the</strong> font with <strong>the</strong><br />

same font size.<br />

It should be noted that irrespective of any font in <strong>the</strong> output file, <strong>the</strong> final printed<br />

output will depend solely on <strong>the</strong> fonts installed in <strong>the</strong> printer.<br />

Example: Suppose that a report has layout objects associated with one of two fonts,<br />

Helvetica font of size 8, style Plain, and weight Medium, and Courier font. If <strong>the</strong> user<br />

is running this report on a PostScript-1 printer and generating HTML output, <strong>the</strong> fonts<br />

are chosen as follows:<br />

1. While formatting, <strong>Oracle</strong> <strong>Reports</strong> checks uifont.ali for any mappings of ei<strong>the</strong>r<br />

specified font. Suppose that uifont.ali contains this entry in <strong>the</strong><br />

[Printer:PostScript1] section:<br />

Helvetica.8.Plain.Medium.. = "Mkai-Medium"..<br />

<strong>Oracle</strong> <strong>Reports</strong> will now search for <strong>the</strong> Mkai-Medium font instead of <strong>the</strong> Helvetica<br />

font.<br />

4-4 <strong>Oracle</strong> Application Server <strong>Reports</strong> Services <strong>Publishing</strong> <strong>Reports</strong> <strong>to</strong> <strong>the</strong> <strong>Web</strong>

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

Saved successfully!

Ooh no, something went wrong!