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 "simon steiner (JIRA)" <ji...@apache.org> on 2017/03/13 09:17:04 UTC
[jira] [Commented] (FOP-2529) [PATCH] Avoid character remapping if
font contains the same character multiple times
[ https://issues.apache.org/jira/browse/FOP-2529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15907056#comment-15907056 ]
simon steiner commented on FOP-2529:
------------------------------------
Can we see fo, fop.xconf, unit test?
> [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
> Attachments: fop_2529.patch
>
>
> 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.15#6346)