Font and Alignment Problems When Using the New 11g Font Mechanism

Font and Alignment Problems When Using the New 11g Font Mechanism

Font and Alignment Problems When Using the New 11g Font Mechanism

Titleimage

Posted by Patrick Hamou on 2017:09:07 18:40:40

APPLIES TO:

Oracle Reports Developer - Version 11.1.1.1.0 to 11.1.2.0.0 [Release 11g]
Information in this document applies to any platform.

GOAL

There are a number of known issues with Fonts and Alignment when using the new 11g Reports font mechanism, such as:

Bug 12321664: INCORRECT FONT DISPLAYED FOR SRW.SET_FONT (first seen in 11.1.1.2, fixed in version 11.1.2)
Bug 9576045: SRW.SET_FONT_SIZE DOES NOT WORK IN REPORTS 11G ON LINUX (first seen in 11.1.1.3, fixed in version 11.1.2) 
Bug 13524975: TEXT VIEWER SHOWS DESCENT AND BBOX VALUES INCORRECT AND PDF REPORT IS BLANK
Bug 18461017:  REP-56048 ENGINE RWENG-0 CRASHED AFTER UPGRADING TO 11.1.2.2


This note is intended to suggest a possible alternative solution for these font issues  with subsetting / embedding in the new 11g font mechanism.

SOLUTION

This is the alternative solution which can be tested and implemented as appropriate:

1. Disable the new 11g font mechanism by adding/setting the following environment variable in the reports.sh file:
REPORTS_ENHANCED_FONTHANDLING=NO ; export REPORTS_ENHANCED_FONTHANDLING

Also modify uifont.ali to use aliasing to an intermediate font (like in previous versions), in addition to subsetting/embedding. For example, Arial is first aliased to helvetica, then subsetted using arial.ttf files:

[Global]
Arial=helvetica

[PDF:Subset]
helvetica..Italic.Bold.. = "arialbi.ttf"
helvetica...Bold.. = "arialbd.ttf"
helvetica = "arial.ttf" 

Important: It can be the case that you do not want to totally disable the new font mechanism as this would have an impact on other report layouts, however it was proven that only performing the configuration above in the uifont.ali - aliasing+subsetting/embedding overcomes the above mentioned bugs.

REFERENCES

BUG:18461017 - REP-56048 ENGINE RWENG-0 CRASHED AFTER UPGRADING TO 11.1.2.2
BUG:12321664 - INCORRECT FONT DISPLAYED FOR SRW.SET_FONT
BUG:9576045 - SRW.SET_FONT_SIZE DOES NOT WORK IN REPORTS 11G ON LINUX
BUG:13524975 - TEXT VIEWER SHOWS DESCENT AND BBOX VALUES INCORRECT AND PDF REPORT IS BLANK

Posted by Patrick Hamou on 2017:09:07 18:40:40

Return to Blog