[ 
https://issues.apache.org/jira/browse/FOP-2054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Glenn Adams updated FOP-2054:
-----------------------------

    Priority: Blocker
     Summary: Non-embedded fonts are incorrectly assumed to be single byte, 
even when they are multi byte  (was: non-embedded fonts are incorrectly assumed 
to be single byte, even when they are multi byte)
    
> 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: fonts
>    Affects Versions: trunk
>         Environment: Operating System: All
> Platform: All
>            Reporter: Glenn Adams
>            Priority: Blocker
>         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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to