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

Incomplete TTF subset files for mutibyte fonts - incomplete mapping between CIDs and codepoints when having two codepoints associated to the same glyph

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.5
    • None
    • font/opentype
    • None

    Description

      A generic problem appears for MultiByte CID fonts.

      Because of a limitation of the CIDSubset implemenatation, once a glyph has been used for a code point, next usages of the same glyph for other codepoints are discarded. This results in incomplete tables in the TTF sub set file. The structures from CIDSubset class are maps, limiting expressiveness.

       

      In the next diagram I used hyphens and soft hyphens, just as an example, any text with two different characters that map to the same glyph is affected.

      See this attached sketch for details:

      The solution would be to avoid usage of hash maps, and create some associative lists (currently the uniqueness of the keys breaks things).

      Attachments

        Activity

          People

            Unassigned Unassigned
            dc33 Dan Caprioara
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: