Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.5
-
None
-
None
-
Operating System: All
Platform: All
-
53142
Description
the following code in o.a.f.fonts.truetype.TTFFontLoader incorrectly assumes that a non-embedded font is a single byte font:
boolean isCid = this.embedded;
if (this.encodingMode == EncodingMode.SINGLE_BYTE)
if (isCid)
{ multiFont = new MultiByteFont(); returnFont = multiFont; multiFont.setTTCName(ttcFontName); }else
{ singleFont = new SingleByteFont(); returnFont = singleFont; }this prevents the use of non-embedded (referenced only) multibyte fonts
the attached input FO file and corresponding FOP configuration make use of the simsun.ttf font (a multibyte font) which can be downloaded from [1]