[texhax] LGR for xelatex/lualatex

Bob Tennent rdt at cs.queensu.ca
Wed May 23 22:21:55 CEST 2018


 >|>  >| With fontspec you use TU-encoding.
 >|>
 >|> Use it how? \fontencoding{TU}\selectfont doesn't seem
 >|> to do anything.
 >|
 >|It doesn't need to do anything as TU (=Unicode) is the
 >|default encoding in lualatex and xelatex so normally
 >|selecting TU is a no-op, you simply need to select a font
 >|that has Greek.

FiraSans has Greek but I think the point of using LGR is to
replace Latin letters by Greek letters.

 >|You could use LGR encoding with lualatex if you really
 >|needed to, but certainly you should not with xelatex (or
 >|hyphenation will be wrong) as xelatex only loads the TU
 >|hyphenation patterns.

I've tried one paragraph of lipsum with xelatex and got the
same hyphenation as pdflatex and lualatex.





More information about the texhax mailing list