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
    Classification: Unclassified

Created attachment 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;
        } 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]


Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to