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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table 4–6 Sample font information<br />

Troubleshooting Font Issues<br />

Font name Style Weight Example output<br />

R0 Courier 0 0 ... ((s0ph0s0b4099T...<br />

R39 Courier Bold 0 3 ... ((s0ph0s3b4099T...<br />

R40 Courier Italic 1 0 ... ((s0ph1s0b4099T...<br />

R55 Century<br />

Schoolbook Roman<br />

0 0 ... ((s1pv0s0b24703T ...<br />

Table 4–7 Sample Flash font information<br />

Font name<br />

Symbol<br />

set Style Weight Example output<br />

F2 OCR-A 0O 0 0 ... (0O(s0ph0s0b4200T<br />

...<br />

F3 OCR-B 1O 0 3 ... (1O(s0ph0s0b4206T<br />

...<br />

In <strong>the</strong>se examples, <strong>the</strong>re are many more fonts and each font has its own code. OCRB<br />

for example has code 4206. This number is important later on.<br />

Creating output<br />

When having problems getting <strong>the</strong> correct font, simplify <strong>the</strong> report and <strong>the</strong>reby <strong>the</strong><br />

output. This can be done by creating a straightforward report using select<br />

sysdate from dual as <strong>the</strong> query and limiting <strong>the</strong> number of fonts. This will avoid<br />

long runs and create much smaller output files.<br />

The output file<br />

The resulting PCL-file is a binary file but is reasonably readable in <strong>the</strong> VI edi<strong>to</strong>r. The<br />

first small part and <strong>the</strong> end part is binary, but <strong>the</strong> middle part is readable and contains<br />

data that can be interpreted.<br />

Verifying <strong>the</strong> output file<br />

The only interesting information is in <strong>the</strong> readable, middle part of <strong>the</strong> file. Find <strong>the</strong> text<br />

(this is <strong>the</strong> text displayed in <strong>the</strong> reports output) and check out <strong>the</strong> part preceding <strong>the</strong><br />

text.<br />

It looks like this:<br />

....;SD1,14,2,0,3,10.34,5,0,6,0,7,4099;LB here is your text<br />

In <strong>the</strong> example above, <strong>the</strong> font is selected with code 4099. For <strong>the</strong> Lexmark printer, this<br />

is selecting Courier.<br />

In one example, <strong>the</strong> font OCR-B (code 4206) was needed. The font did not come out<br />

until that specific code was generated just before <strong>the</strong> selected text. It looks like this:<br />

....;SD1,14,2,0,3,8.57,5,0,6,0,7,4206;LBThis is OCRB font....<br />

Problems & answers<br />

If <strong>the</strong> output file contains <strong>the</strong> correct code, but <strong>the</strong> font does not appear on <strong>the</strong> printer,<br />

<strong>the</strong> printer probably does not have <strong>the</strong> font available. This will also occur if <strong>the</strong> code in<br />

<strong>the</strong> output file (deduced from TFM file) is not <strong>the</strong> same as <strong>the</strong> one <strong>the</strong> printer is<br />

Managing Fonts in <strong>Oracle</strong> <strong>Reports</strong> 4-17

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

Saved successfully!

Ooh no, something went wrong!