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

AFP with custom font TTF generates space-letter-space

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.8
    • None
    • font/unqualified
    • None
    • FOP 2.8
      Java 17
      Ubuntu 22.04

    Description

      I am producing an AFP file with Apache FOP 2.8 and java 17.
      In my fo.xconf file am using a custom font with the TTF format and I have used also a xsl file. 
      I have tried several TTF and tried also the attribute position-by-char="false".

      Altough the file renders properly when viewed with a tool like "Papyrus AFP viewer", 
      I have noticed that the content has issues when analyzed using AFPexplorer.
      In the example below you see that the words are not generated words by words but space-letter-space which is causing problems when printing.

      FPexplorer
      MDR:  1= A r i a l  2= a r i a l N  3= a r i a l N
       
      PTX tag:
       A  r  i  a  l  a  r  i  a  l  N  a  r  i  a  l  N  B
      ESC
      AMB   223
      AMI   236
      SCFL  1SVI   11

      Attachments

        1. fo.xsl
          1 kB
          jo Heinen
        2. fop.xconf
          2 kB
          jo Heinen
        3. spacemono-regular.ttf
          89 kB
          jo Heinen
        4. times.ttf
          340 kB
          jo Heinen
        5. afpFontCustom.afp
          1.16 MB
          jo Heinen
        6. arial.ttf
          1012 kB
          jo Heinen
        7. fopPosByCharTrue.xconf
          2 kB
          jo Heinen

        Activity

          People

            Unassigned Unassigned
            joheinen jo Heinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: