... when I compile with XeLaTeX this preamble
\documentclass[11pt]{book}
\RequirePackage{luatex85}
\usepackage[paperwidth=142mm, paperheight=210mm,top=25mm, bottom=20mm, left=17mm, right=22mm]{geometry}
%\usepackage{fontspec}
\usepackage{fancyhdr}
\usepackage{fourier-orns}
\usepackage{graphicx}
\usepackage{chngcntr}
\usepackage{tocloft}
\usepackage{charter}
\usepackage[T1]{fontenc}
\usepackage{xltxtra}
\usepackage{polyglossia}
\begin{document}
text
\end{document}
I get this error
\Program Files\MiKTeX 2.9\tex\latex\fontspec\fontspec.cfg")
! Undefined control sequence.
<argument> \LaTeX3 error:
Erroneous variable \c__fontspec_shape_n_n_tl used!
l.3806 \emfontdeclare{ \emshape, \eminnershape }
\usepackage[T1]{fontenc} \usepackage{xltxtra}you have tagged the question xetex, but have used\RequirePackage{luatex85}which only works with luatex – David Carlisle Oct 18 '17 at 12:59\usepackage{fourier-orns}, the compilation is much faster now. (this is all stuff remaining from tests) – alfred Oct 18 '17 at 13:30