[
https://issues.apache.org/jira/browse/FOP-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18093476#comment-18093476
]
Joao Goncalves commented on FOP-3131:
-------------------------------------
[~joheinen] Hi, I've reached out to the developer of the viewer you mentioned,
as I don't think this is a FOP issue. The viewer seems to be taking a string
encoded in UTF-16BE and reading it with UTF-8.
> AFP with custom font TTF generates space-letter-space
> -----------------------------------------------------
>
> Key: FOP-3131
> URL: https://issues.apache.org/jira/browse/FOP-3131
> Project: FOP
> Issue Type: Bug
> Components: font/unqualified
> Affects Versions: 2.8
> Environment: FOP 2.8
> Java 17
> Ubuntu 22.04
> Reporter: jo Heinen
> Priority: Major
> Attachments: afpFontCustom.afp, arial.ttf, fo.xsl, fop.xconf,
> fopPosByCharTrue.xconf, spacemono-regular.ttf, times.ttf
>
>
> 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
--
This message was sent by Atlassian Jira
(v8.20.10#820010)