[ 
https://issues.apache.org/jira/browse/FOP-2741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vikas updated FOP-2741:
-----------------------
    Description: 
I am not able to render exclamatory ("!") symbol in a AFP file. It is rendered 
as a Pipe (|) character instead.

*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! 
   &#33;</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 !

*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

Appreciate your help on this blocking issue.

  was:
I am not able to render exclamatory (!) symbol in a AFP file. It is rendered as 
a Pipe (|) character instead.

*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! 
   &#33;</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 !

*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

Appreciate your help on this blocking issue.


> Exclamatory (!) symbol not being rendered properly in AFP
> ---------------------------------------------------------
>
>                 Key: FOP-2741
>                 URL: https://issues.apache.org/jira/browse/FOP-2741
>             Project: FOP
>          Issue Type: Bug
>          Components: renderer/afp
>    Affects Versions: 2.1, 2.2
>         Environment: OS: Windows 7 Enterprise
> Java : jdk1.8.0_101
> Encoding: ISO-8859-1
>            Reporter: Vikas
>            Priority: Blocker
>         Attachments: C0EX0BG0, Exclamatory.afp, Exclamatory.fo, 
> fopTest.xconf, T1EX0000
>
>
> I am not able to render exclamatory ("!") symbol in a AFP file. It is 
> rendered as a Pipe (|) character instead.
> *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! 
>    &#33;</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 !
> *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
> Appreciate your help on this blocking issue.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to