I use TeX Live 2010 and my editor is Texmaker Bidi. It was working probably good but from 2 months ago I've encountered with the error:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! Fatal fontspec error: "cannot-use-pdftex"
!
! The fontspec package requires either XeTeX or LuaTeX to function.
!
! You must change your typesetting engine to, e.g., "xelatex" or "lualatex"
! instead of plain "latex" or "pdflatex".
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
when I'm trying to load xepersian
LaTeX.
but I do not know how can I change pdfLaTeX to XeLaTeX.
This is the second edit of my question . the code is :
\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-bezier}
\usepackage{xepersian}
\settextfont{XB Zar}
\setlatintextfont{Junicode}
\setdigitfont{XB Zar}
\begin{document}
!سلام دنیا
\begin{pspicture}(3,3)
\psbcurve(1,2)(5,7)(2,2)(12,3)
\end{pspicture}
\end{document}
but the output does not include the shapes .