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

Exclamatory (!) symbol not being rendered properly in AFP

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Not A Bug
    • Affects Version/s: 2.1, 2.2
    • Fix Version/s: None
    • Component/s: renderer/afp
    • Labels:
      None
    • Environment:
      OS: Windows 7 Enterprise
      Java : jdk1.8.0_101
      Encoding: ISO-8859-1

      Description

      I am not able to render exclamatory ("!") symbol in a AFP file. It is rendered as a Pipe (|) character instead. There are no FOP warning/error messages. Corresponding Font does has the required Character/Glyph.

      Below is the test fo file content,

      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
      <!-- defines the layout master -->
      <fo:layout-master-set>
      <fo:simple-page-master master-name="first" page-height="29.7cm" page-width="21cm" margin-top="1cm" margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
      <fo:region-body margin-top="1cm"/>
      <fo:region-before extent="1cm"/>
      <fo:region-after extent="1.5cm"/>
      </fo:simple-page-master>
      </fo:layout-master-set>

      <!-- starts actual layout -->
      <fo:page-sequence master-reference="first">
      <fo:flow flow-name="xsl-region-body">
      <fo:block role="p" >
      <fo:inline font-family="Humnst777 BT">Surprise! !</fo:inline>
      </fo:block>
      </fo:flow>
      </fo:page-sequence>
      </fo:root>

      Below is the command used to generate afp file,
      fop -c fopTest.xconf -fo Exclamatory.fo -afp Exclamatory.afp

      Below is the FOP output,
      Sep 25, 2017 3:31:03 PM org.apache.fop.apps.FopConfParser configure
      INFO: Default page-height set to: 11.00in
      Sep 25, 2017 3:31:03 PM org.apache.fop.apps.FopConfParser configure
      INFO: Default page-width set to: 8.50in
      Sep 25, 2017 3:31:05 PM org.apache.fop.events.LoggingEventListener processEvent
      INFO: Rendered page #1.

      I have tried below options, but could not get it to work
      1. Tried with different font family (ex: Arial, Helvetica, Symbol)
      2. Used corresponding unicode "&#33" instead of !
      3. Tried versions 2.1 & 2.2

      Please find attached,
      1. Test fo file
      2. FOP config file
      3. Afp output file
      4. Humnst BT 777 char set file
      5. T1EX0000 codepage
      6. Screen shot of the Font file with AFP Font viewer

      Appreciate your help on this blocking issue.

        Attachments

        1. Exclamatory.fo
          2 kB
          Vikas
        2. fopTest.xconf
          26 kB
          Vikas
        3. Exclamatory.afp
          37 kB
          Vikas
        4. C0EX0BG0
          34 kB
          Vikas
        5. T1EX0000
          3 kB
          Vikas
        6. Font.JPG
          183 kB
          Vikas

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vghegadi Vikas
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: