I am trying to type a text with both Hebrew and English. Following this answer, I was trying to use polyglossia together with a Hebrew Font I downloaded from OpenSiddur.
\documentclass{scrartcl}
\usepackage{polyglossia}
\setmainlanguage{hebrew}
\newfontfamily{\hebrewfont}{Shlomo semiStam}
\begin{document}
\title{שלום עולם}
\author{שלום עולם}
\maketitle
העיר מקודשת ליהדות, לנצרות ולאסלאם, והיוותה מרכז חיי העם היהודי בימי
קדם ומושא געגועיו בזמן שהייתו בגלות. משום מרכזיותה בעולמם של המאמינים,
הייתה העיר מוקד למלחמות וסכסוכים הנמשכים עד עצם היום הזה. מאז סוף המאה
ה-19 התפתחו סביב העיר העתיקה שכונות העיר החדשה, המהוות כיום את רובה
המוחלט של העיר. במרכזה של ירושלים השלמה עומד הר הבית, שמפריד בין מערב
ירושלים למזרח ירושלים.
\end{document}
Using the article class together with XeLaTeX, the document compiles without any problem, but I would prefer to use the KOMA class scrartcl.
I get
! Package polyglossia Error:
The current roman font does not contain the Hebrew script!
(polyglossia) Please define \hebrewfont with \newfontfamily.
even though I defined a Hebrew font. I tried interchanging the order of package and language loading, but this didn't seem to change anything.