[XeTeX] polyglossia Greek & Hebrew not working

David Perry hospes.primus at verizon.net
Sat Jul 24 19:09:58 CEST 2010

Vafa Khalighi wrote:
> Is not \newfontfamily\greekfont{} and \newfontfamily\hebrewfont{} missing?

I did not think this was necessary, because the polyglossia manual
(section 4) says "For instance, if the default roman font defined by
\setromanfont does not support Greek, then one can define the font used
to display Greek . . . "

\setromanfont is now replaced by \setmainfont (fontspec manual 23.6.1)
so it seems like things should work when I defined \setmainfont{Linux
Libertine} which does contain both Greek and Hebrew.

When I was trying to get this doc to work, I did put newfontfamily
commands, using fonts other than Libertine, in the body of the document;
did not work.

Just now I tried putting them in the preamble, which solved most of the
problems.  I could use either Libertine or other fonts this way.

There does seem to be a problem. Somehow polyglossia is not working as
described in section 4.  I tried just now using Times New Roman for the
main font (without the separate greekfont and hebrewfont commands) and
got the same old problems, so it's not an issue with Libertine (TNR
supports Hebrew and Greek).  I also didn't realize that the
greekfont-type commands had to go in the preamble, not the body; this
should be spelled out in the polyglossia manual.

The Attic numeral still is not working; am I doing something wrong there?

Thanks - David

More information about the XeTeX mailing list