\documentclass[12pt,a4paper,openany]{book}
\usepackage{amsmath,amssymb,amsthm} \usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{geometry}
\usepackage{polyglossia} \setmainlanguage[numerals=maghrib]{arabic}
\setotherlanguage{english}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.5,AutoFakeSlant=-0.03]{Traditional Arabic}
\setsansfont[Script=Arabic,Scale=1.5]{Traditional Arabic}
\begin{document}
\textbf{ليكن}
\end{document}
答案1
它不起作用,因为该字体没有粗体版本。
具有粗体字样的字体:
\documentclass[12pt,a4paper,openany]{book}
\usepackage{amsmath,amssymb,amsthm} \usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{geometry}
\usepackage{polyglossia} \setmainlanguage[numerals=maghrib]{arabic}
\setotherlanguage{english}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.5,AutoFakeSlant=-0.03]{Amiri}
\setsansfont[Script=Arabic,Scale=1.5]{Amiri}
\begin{document}
\textbf{ليكن}
\end{document}