Andreas L. Delmelle commented on FOP-2349:

Quick and dirty approach is to:
a) adapt the signature of GlyphMapping.processWordMapping to include 
letterSpaceIPD as a parameter, and adapt the call from doGlyphMapping a few 
lines up to include it.
b) in processWordMapping, replace the comment line with two statements:

        nLS = mcs.length() - 1;
        ipd = ipd.plus(letterSpaceIPD.mult(nLS));

Seems to do the job, but needs more refinement to be correct for all cases.

> 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: FOP-2349.fo, 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

Reply via email to