[Tex/LaTex] Considerations when migrating from XeTeX to LuaTeX

luatexxetex

What are the things to know when moving from XeTeX to LuaTeX, particularly when it comes to TTF/OTF support and OpenType features?

Best Answer

The only difference is for Linux: OpenType or TrueType fonts from the TeX directory structure, e.g. the texgyre fonts, have to be assigned by its filename for XeTeX, e.g. \fontspec{texgyre-pagella.otf}. LuaTeX itself also searches the TeX font directories, the reason why LuaTeX finds such font defined by its family name, e.g. \fontspec{TexGyre-Pagella}. For MiKTeX it should make no difference, fonts should be found.

The package mathspec works only for XeTeX. And polyglossia doesn't work with LuaLaTeX yet.