0

How do i run this program ; because in texmaker it gives error.

\documentclass{article}
\usepackage{fontspec}
\newfontfamily\urdufont[Script=Arabic,Scale=1.4]{Jameel Noori Nastaleeq}
\begin{document}
\setRTL
\urdufont
j j  k i l a d 
\end{document}

I get the error message:

! fatal font spec error The font spec package either requires xetex or LuaTeX to function

while running the given MWE with ???.

Shaheryar
  • 431
  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – Heiko Oberdiek Sep 14 '13 at 14:21
  • 2
    Good that you have provided a minimal working example (MWE). A problem description would be nice. – Heiko Oberdiek Sep 14 '13 at 14:23
  • 4
    There is a typo in the code: \usepakage{fontspec} should be corrected to \usepackage{fontspec}. – Heiko Oberdiek Sep 14 '13 at 14:24
  • well while i run this program in texmaker with correct \usepackage then it gives the error "! fatal font spec error The font spec package either requires xetex or r LuaTeX to function"

    and now i tried to run it in winedt 6 and its taking forever so tell me how to run it ; i dont know a bit about xetex or how to use winedt 6 till now i have only used texmaker and all programs worked correctly

    – Shaheryar Sep 16 '13 at 07:02
  • 1
    And did you run it with LuaLaTeX or XeTeX? Please have a look at the TeXMaker documentation (sorry, don't know that software so well) on how to do that. For sure, you can choose that next to your "compile" or "built" button. Default will be LaTeX or PDFLaTeX I guess. – LaRiFaRi Sep 16 '13 at 07:41
  • #1: Install the font; http://jameel-noori-nastaleeq-urdu-fonts.software.informer.com/1.0/

    #2: add \usepackage{bidi}

    #3: should look like: \documentclass{article} \usepackage{fontspec} \usepackage{bidi} \setRTL \newfontfamily\urdufont [Script=Arabic,Scale=1.4]{Jameel Noori Nastaleeq} \begin{document} \urdufont j j k i l a d \end{document}

    #4: Compile this with XeLaTeX

    Works for me.

    – Vairis Sep 16 '13 at 12:08

0 Answers0