mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
* 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:
parent
ef79a1fe8a
commit
7a27ce678d
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user