[
https://issues.apache.org/jira/browse/FOP-2054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
simon steiner updated FOP-2054:
-------------------------------
Priority: Major (was: Blocker)
> Non-embedded fonts are incorrectly assumed to be single byte, even when they
> are multi byte
> -------------------------------------------------------------------------------------------
>
> Key: FOP-2054
> URL: https://issues.apache.org/jira/browse/FOP-2054
> Project: FOP
> Issue Type: Bug
> Components: font/unqualified
> Affects Versions: trunk
> Environment: Operating System: All
> Platform: All
> Reporter: Glenn Adams
> Attachments: console.log, fop.xconf, test.fo.xml, test.pdf
>
>
> 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
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)