I am on Miktex 2.9, Windows 7 and am trying to get (new) hebrew fonts to work with polyglossia and fontspec. My pb looks very similar to that of Arieh (http://latex.org/forum/viewtopic.php?f= ... eh#p101904), except that he's on TexLive and Ubuntu.
I used cardo as the new font.
I installed the fonts in a local directory: c:/localtexf/fonts/cardo/,
and I used the specification
Path = localtexf/fonts/cardo/,
as seems recommended by the fontspec manual.
Here is a MWE:
Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage{fontspec}\setmainfont[Path = localtexf/fonts/cardo/,UprightFont = *-Regular,ItalicFont = *-Italic,BoldFont = *-Bold]{Cardo}\usepackage{polyglossia}\setdefaultlanguage{english}\setotherlanguage{hebrew}\newfontfamily\hebrewfont[Script=Hebrew]{Cardo}\begin{document}This hebrew text is Gen.1:1 from BHS\\\RL{בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים}\\ % result: misplaced vowels & diacritics\begin{hebrew}\RL{בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים}\end{hebrew}\\ % result: right placed vowels & diacriticsText again.\end{document}
I get the error message:
! fontspec error: "font-not-found"
!
! The font "Cardo-Regular" cannot be found.
!
! See the fontspec documentation for further information.
If the issue is specific to Miktex (as I see that it was successfully resolved under Ubuntu with TexLive), please let me know.