* XeTeX: OldStyleNumbers argument must be specified as \setmainfont option (bug 7041).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36408 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2010-11-20 14:53:34 +00:00
parent ef79a1fe8a
commit 7a27ce678d

View File

@ -2547,9 +2547,12 @@ string const BufferParams::loadFonts(string const & rm,
ostringstream os;
if (xetex) {
if (rm != "default")
os << "\\setmainfont[Mapping=tex-text]{"
<< parseFontName(rm) << "}\n";
if (rm != "default") {
os << "\\setmainfont[Mapping=tex-text";
if (osf)
os << ",Numbers=OldStyle";
os << "]{" << parseFontName(rm) << "}\n";
}
if (sf != "default") {
string const sans = parseFontName(sf);
if (sfscale != 100)
@ -2572,8 +2575,6 @@ string const BufferParams::loadFonts(string const & rm,
os << "\\setmonofont[Mapping=tex-text]{"
<< mono << "}\n";
}
if (osf)
os << "\\defaultfontfeatures{Numbers=OldStyle}\n";
return os.str();
}