Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2529

[PATCH] Avoid character remapping if font contains the same character multiple times

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • font/opentype
    • None

    Description

      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.

      Attachments

        1. fop_2529.patch
          2 kB
          Matthias Reischenbacher

        Activity

          People

            Unassigned Unassigned
            matthias8283 Matthias Reischenbacher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: