[ 
https://issues.apache.org/jira/browse/FOP-2349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14547122#comment-14547122
 ] 

Andreas L. Delmelle commented on FOP-2349:
------------------------------------------

Had a first look at this one, and the culprit is hidden in a comment in 
org.apache.fop.fonts.GlyphMapping.
In the private static method processWordMapping(), at line 162, it says 
literally:
 
    // [TBD] - handle letter-spacing

At this point, I cannot judge whether this was an oversight, or whether it is 
really such a hard problem that it could not be implemented at that time. I am 
going to have a closer look at that. 
In the meantime, if anyone has any useful hints or background info to add, feel 
free to chime in.

> Inline elements with letter-spacing and custom font aren't correctly sized
> --------------------------------------------------------------------------
>
>                 Key: FOP-2349
>                 URL: https://issues.apache.org/jira/browse/FOP-2349
>             Project: Fop
>          Issue Type: Bug
>          Components: layout/unqualified
>            Reporter: Matthias Reischenbacher
>         Attachments: inline-letter-spacing.pdf, inline-letter-spacing.xml
>
>
> If letter-spacing is applied to an inline element, that uses one of the 
> base-14 fonts, the width of the inline element is automatically expanded with 
> the letter-spacing.
> However if a custom font is used (e.g. Arial) the inline width isn't expanded 
> anymore, which prevents from using background-color or borders for the inline 
> element.
> See attached PDF which illustrates the problem.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to