BufferParams.cpp: correct wrong previous commit

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18859 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2007-06-22 22:31:49 +00:00
parent 31c99e6b37
commit e077e53a13

View File

@ -896,14 +896,16 @@ bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features,
// set font encoding
// this one is not per buffer
// for Farsi we also need to load the LAE and LFE encoding
if (lyxrc.fontenc != "default" && language->lang() == "farsi") {
os << "\\usepackage[" << from_ascii(lyxrc.fontenc)
<< ",LFE,LAE]{fontenc}\n";
texrow.newline();
} else {
os << "\\usepackage[" << from_ascii(lyxrc.fontenc)
<< "]{fontenc}\n";
texrow.newline();
if (lyxrc.fontenc != "default") {
if (language->lang() == "farsi") {
os << "\\usepackage[" << from_ascii(lyxrc.fontenc)
<< ",LFE,LAE]{fontenc}\n";
texrow.newline();
} else {
os << "\\usepackage[" << from_ascii(lyxrc.fontenc)
<< "]{fontenc}\n";
texrow.newline();
}
}
// handle inputenc etc.