OS Font Rendering Issue (Fix)
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
OS Font Rendering Issue (Fix)  XML
Forum Index -> ICEpdf General
Author Message
pedrojrivera

Joined: 20/11/2008 00:00:00
Messages: 55
Offline


As I was spot checking some rendered TIF images I spotted some images with badly rendered text. Some fonts were not being rendered properly. I recently updated the Crystal Reports JAR files from XI to 2008 version when I detected some issues.

Well I put the program in debug and discovered that the font names are coming back like this:

AAAAAB+Arial
AAAAAB+Arial
AAAAAC+CalistoMTBold
AAAAAD+Cambria
AAAAAE+CambriaBoldItalic
AAAAAF+CambriaBold
AAAAAG+CambriaItalic
AAAAAH+VerdanaBoldItalic
AAAAAI+BarCode39e
AAAAAJ+Verdana
AAAAAK+TimesNewRomanBold

I traced it back to the FontUtil.guessFamily() method. It was getting rid of the style portion when there is a "+" or "," but did no further checking for embedded styles within the font name.

I modified the method to include this checking. I have attached a zip file with the original PDF and the before and after TIF image conversion.

Pedro
 Filename FontUtil.zip [Disk] Download
 Description
 Filesize 1401 Kbytes
 Downloaded:  49 time(s)


patrick.corless

Joined: 26/10/2004 00:00:00
Messages: 1097
Online


Thanks Pedro, created PDF-206 so we don't lose this enhancement.
[Email]
 
Forum Index -> ICEpdf General
Go to:   
Powered by JForum 2.1.7ice © JForum Team