[texhax] LGR for xelatex/lualatex

Bob Tennent rdtennent at gmail.com
Wed May 23 21:17:20 CEST 2018


 >|I've been asked to provide LGR support for FiraSan fonts.
 >|I've successfully implemented this for latex/pdflatex but
 >|xelatex and lualatex produce
 >|
 >|  LaTeX Font Warning: Font shape `LGR/FiraSans(0)/m/n'
 >|  undefined (Font) using `LGR/cmr/m/n' instead 
 >|
 >|How do I support LGR encoding with fontspec?

The problem seems to be that \setsansfont in
fontspec creates a "new" family FiraSans(0) and then
\fontencoding{LGR}\selectfont looks for a FiraSans(0)...fd,
which doesn't exist.

If I use 

\fontencoding{LGR}\fontfamily{FiraSans-...}\selectfont

all is well.  Is there a better solution?

Bob T.


More information about the texhax mailing list