-1

I am working on texstudio.

enter image description here

\documentclass{article}
\usepackage{polyglossia}

\usepackage{fontspec}
\newfontfamily\arebicfont[sript=Arabic]{Amiri}

\begin{document}




    ooooo

\end{document}

Fatal Package fontspec Error: The fontspec package requires either XeTeX or(fontspec) LuaTeX. \msg_fatal:nn {fontspec} {cannot-use-pdftex}

Ingmar
  • 6,690
  • 5
  • 26
  • 47
  • 4
    Can you please post the error message you get? How do you compile your document? Are you sure the font (Amiri) is installed on your machine? – moewe Mar 17 '22 at 08:50
  • 3
    Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Mar 17 '22 at 08:55
  • Fatal Package fontspec Error: The fontspec package requires either XeTeX or(fontspec) LuaTeX. \msg_fatal:nn {fontspec} {cannot-use-pdftex} – vss vcc Mar 17 '22 at 09:15
  • 4
    Please edit your question to provide new information. Do not just put them in a comment. Also please choose a descriptive title for your question. Have you read the error message? It seems that you are running pdftex instead of xetex or luatex as required by the fontspec package. – ttnick Mar 17 '22 at 09:18
  • I am working on texstudio – vss vcc Mar 17 '22 at 09:35
  • 1
    You must use compile your document with either XeTeX or LuaTeX. – Ingmar Mar 17 '22 at 10:12
  • Duplicate of https://tex.stackexchange.com/questions/71436/fontspec-luatex-error. – Marijn Mar 17 '22 at 16:29

1 Answers1

1

To use the fontspec package, compile your document with either XeTeX or LuaTeX.