You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Matthias Reischenbacher (JIRA)" <ji...@apache.org> on 2015/09/24 22:12:04 UTC

[jira] [Created] (FOP-2529) [PATCH] Avoid character remapping if font contains the same character multiple times

Matthias Reischenbacher created FOP-2529:
--------------------------------------------

             Summary: [PATCH] Avoid character remapping if font contains the same character multiple times
                 Key: FOP-2529
                 URL: https://issues.apache.org/jira/browse/FOP-2529
             Project: FOP
          Issue Type: Improvement
          Components: font/opentype
            Reporter: Matthias Reischenbacher


When using font Meiryo for japanese PDF output, some japanese characters where remapped, e.g. 青 (decimal unicode: 38738) was remapped to ⻘ (decimal unicode: 11992). My patch contains a changed MultiByteFont.findCharacterFromGlyphIndex() method that tries to preserve the original character, if possible, but falls back to the current behavior if not.

Preserving the original characters is important for a more predictable search behavior in PDF viewers. Since the characters were remapped, searching for the original character didn't show any results.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)