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...@subst@correction{%
>       \xdef\su...@correction{%
>          \f...@name
>          \global\expandafter\font
>            \csname \c...@fontshape/\...@size\endcsname
>            {\noexpand\fontname\font} %<--- braces
>           \relax}%
>       \aftergroup\su...@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 :)

-- Will


Reply via email to