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

Andreas L. Delmelle edited comment on FOP-2349 at 5/17/15 12:23 PM:
--------------------------------------------------------------------

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:
{code:language=java}
        nLS = mcs.length() - 1;
        ipd = ipd.plus(letterSpaceIPD.mult(nLS));
{code}
Seems to do the job, but needs more refinement to be correct for all cases.


was (Author: adelmelle):
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
(v6.3.4#6332)

Reply via email to