0

When I do something like this:

\documentclass{article}

\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{arabic}

\newfontfamily\arabicfont[]{Geeza Pro Regular}
\csname @Latintrue\endcsname

\begin{document}
\begin{Arabic}#بالحزن\end{Arabic}
\end{document}

why does the hashtag come out as a square?

  • 1
    Would you complete the example so that it can be compiled and we can see which font you’re trying to use? – Thérèse Mar 26 at 0:25
  • \usepackage{fontspec} \usepackage{polyglossia} \setmainlanguage{english} \setotherlanguage{arabic} \newfontfamily\arabicfont[]{Geeza Pro Regular} \csname @Latintrue\endcsname – Bender Rodriguez Mar 26 at 0:28
  • Can you reproduce the problem with a freely available font? Not many of us will have Geeza Pro to play with. – Thérèse Mar 26 at 0:30
  • please give me an idea of such a font? – Bender Rodriguez Mar 26 at 0:31
  • 1
    Two things: 1. Remember to load your font with [Script=Arabic] 2. Regarding the hashtag, type \# instead of just #. – Robert Alessi Mar 29 at 23:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.