[XeTeX] Russian fonts

Olly Powell ojp10 at yahoo.com
Fri Jan 16 12:45:21 CET 2009


Sorry, I forgot to include the Preamble.

Jonathan's answer is spot on.  Works perfectly in Times new Roman works perfectly.

\documentclass{book}
\usepackage{fontspec,xunicode,xltxtra} 
\newcommand{\russ}[1]{{\fontspec{Times New Roman}#1}}
\newcommand{\rusp}[1]{{\fontspec{Perestroika}#1}}


--- On Sat, 1/17/09, Jonathan Kew <jonathan at jfkew.plus.com> wrote:

> From: Jonathan Kew <jonathan at jfkew.plus.com>
> Subject: Re: [XeTeX] Russian fonts
> To: ojp10 at yahoo.com, "Unicode-based TeX for Mac OS X and other platforms" <xetex at tug.org>
> Date: Saturday, January 17, 2009, 12:34 AM
> On 16 Jan 2009, at 10:30, Olly Powell wrote:
> 
> > Hello fellow Xetexers
> > 
> > I am having trouble with a Cyrillic font named
> "Perestroika", I downloaded somewhere.  It works
> fine in open-office, but is giving funny results in Xetex. 
> Perhaps somebody could explain the problem, or suggest a
> good Cyrillic font for Russian placenames in an English
> novel.
> > 
> > Here is the code:
> > ------
> > \begin{document}
> > \setmainfont{Times New Roman}
> > 
> > 
> > 1. \russ{уфе ьн ырщкеы}
> > 
> > 2.  \russ{eat my shorts}
> > 
> > 3. \rusp{уфе ьн ырщкеы}
> > 
> > 4.  \rusp{eat my shorts}
> > \end{document}
> > 
> > ------
> > 1.  and 2.  work as expected.  3 gives square boxes,
> and the error messages "Missing character: there is no
> N$f in font Perestroika/ICU !
> > 4.  Gives some russian characters.
> 
> Sounds like that font has the Russian glyphs assigned to
> the Latin Unicode codepoints. Use a properly
> Unicode-compliant font (such as Times New Roman, or many
> others). Some are listed at
> http://www.alanwood.net/unicode/fonts.html#wgl4, for
> example.
> 
> JK


      


More information about the XeTeX mailing list