Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-668

TrueType Font - Feature for CMAPEncodingEntry

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.0.0
    • 1.2.0
    • FontBox
    • None

    Description

      Hi,

      I'm currently using FontBox 1.0.0.

      I encountered a problem with the CMapEncodingEntry.
      When the subtableFormat is 2, an entry of the glyphidToCharacterCode array can be used for two different CharacterCodes.
      In this case, it is impossible to obtain the GlyphId using the character code.

      To avoid this problem and to access easyly to the GlyphId, I have added a Map (key : CharCode, Value : GlyphId).

      In attachement, you can find the patch for this feature.

      Regards,
      Eric

      Attachments

        1. TrueTypePDF.ttf
          32 kB
          Eric Leleu
        2. SampleCMapEntry.java
          0.8 kB
          Eric Leleu
        3. CMAPEncodingEntry.patch
          3 kB
          Eric Leleu

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            leleueri Eric Leleu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment