Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.0.1
-
Fix Version/s: 4.2
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:-
-
Assignee Priority:P3
Description
Umlauts are rendered in an incorrect bold color and positioned very close to the character to the right. This issue occurs when the Frutiger fonts are installed on the local system and result in ICEpdf throwing the following font substitution error message during rendering:
<message>Font Substitution: Found failed Frutiger45light,Italic Arial-BoldMT</message>
<message>Font Substitution: Found failed Frutiger45light,Italic Arial-BoldMT</message>
I manged to edit the pdfviewerfontcache.properties to get the fonts in question to load correctly. However the output didn't look much better the Umlaut was still pretty close to the next character. Actually in Acrobat it is pretty close too.
The reason they are seeing font "found failed" is that the fonts in question do not have enought naming information embedded in the font file. For example they are list as follows:
ftb--- /frutiger65bold c\:\\windows\\fonts
FTB.TTF
ftlb-- /frutiger45light c\:\\windows\\fonts
Ftlb.ttf
ftl--- /frutiger45light c\:\\windows\\fonts
FTL.TTF
For frutiger65bold everything is OK as we can get the bold information from the font base name. However the font names ftlb and ftlb have the same base name and no notion of bold or italic.
The only way to make this work is so to go into the pdfviewerfontcache.properties and tweak the font style value. Here are the reference integers.
boldItalic = -268431360
italic = -268435200
bold = -268435440
plain = -268435455