https://issues.apache.org/bugzilla/show_bug.cgi?id=53142
Bug #: 53142 Summary: non-embedded fonts are incorrectly assumed to be single byte, even when they are multi byte Product: Fop Version: 1.1dev Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: fonts AssignedTo: fop-dev@xmlgraphics.apache.org ReportedBy: gad...@apache.org Classification: Unclassified Created attachment 28669 --> https://issues.apache.org/bugzilla/attachment.cgi?id=28669 input FO file 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) { isCid = false; } 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] [1] http://jumal.is.free.fr/SimSun.ttf -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.