On Sun, May 17, 2015 at 6:07 AM, Andreas L. Delmelle (JIRA) <j...@apache.org
> wrote:

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

IIRC, I ran out of time to re-integrate LS support for the complex script
path, for which your QD fix will not work. Specifically, mcs.length doesn't
equal number of base glyphs, but also includes combining glyphs.


>
> > 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