Details

    • Type: Bug Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Component/s: fonts
    • Labels:
      None
    • Environment:
      Operating System: Linux
      Platform: PC
    • External issue ID:
      51530

      Description

      Some double byte characters aren't being written correctly to an AFP document. These are specifically EBCDIC encoded double byte fonts, as the java.nio.CharsetEncoder prepends and appends the "Shift Out Shift In" operators (0x0E and 0x0F respectively) to the byte array.

      These are line data commands used for shifting between single and double byte encodings and not necessary in AFP. The result being that the characters aren't encoded correctly.

      These need to be removed, however, there's no "fool proof" way of distinguishing between an EBCDIC DBCS (double byte character set) and other DBCSs. Thus I have implemented an optional attribute "ebcdic-dbcs" to remove these 0x0E and 0x0F operators.

      I've tested this here, but can't provide an EBCDIC encoded DBCS due to licensing issues.

      1. doublebytefont.patch
        22 kB
        Mehdi Houshmand
      2. afp-dbcs.patch
        30 kB
        Mehdi Houshmand

        Activity

        Hide
        Mehdi Houshmand added a comment -

        Attachment doublebytefont.patch has been added with description: [PATCH] the fix

        Show
        Mehdi Houshmand added a comment - Attachment doublebytefont.patch has been added with description: [PATCH] the fix
        Hide
        Mehdi Houshmand added a comment -

        I failed to include a file in the patch

        Show
        Mehdi Houshmand added a comment - I failed to include a file in the patch
        Hide
        Mehdi Houshmand added a comment -

        Attachment afp-dbcs.patch has been added with description: AFP dbcs patch

        Show
        Mehdi Houshmand added a comment - Attachment afp-dbcs.patch has been added with description: AFP dbcs patch
        Hide
        Glenn Adams added a comment -

        batch transition to closed; if someone wishes to restore one of these to resolved in order to perform a verification step, then feel free to do so

        Show
        Glenn Adams added a comment - batch transition to closed; if someone wishes to restore one of these to resolved in order to perform a verification step, then feel free to do so

          People

          • Assignee:
            fop-dev
            Reporter:
            Mehdi Houshmand
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development