[lltx] Problem with slanted fonts
Khaled Hosny
khaledhosny at eglug.org
Mon Sep 20 13:43:21 CEST 2010
On Mon, Sep 20, 2010 at 08:28:55PM +0930, Will Robertson wrote:
> On 20/09/2010, at 8:22 PM, Ulrike Fischer wrote:
>
> > Well I tried this redefinition and it worked fine with lualatex
> > (only with lualatex! pdflatex and xelatex don't like the additional
> > braces).
> >
> > \makeatletter
> > \def\do at subst@correction{%
> > \xdef\subst at correction{%
> > \font at name
> > \global\expandafter\font
> > \csname \curr at fontshape/\f at size\endcsname
> > {\noexpand\fontname\font} %<--- braces
> > \relax}%
> > \aftergroup\subst at correction
> > }
> >
> > So braces are probably ok.
>
> Thanks for doing this.
>
> What are your thoughts on the preferable approach?
>
> If we strip spaces beforehand then we know that we won't fall foul of any related problems with \fontname; if we patch the NFSS then the approach will be robust for other people's code that also falls foul of the same problem.
>
> Guess we could even do both :)
And fix luaotfload too, so someone writing his own .fd files don't fall
foul :)
--
Khaled Hosny
Arabic localiser and member of Arabeyes.org team
Free font developer
More information about the lualatex-dev
mailing list