mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
BufferParams.cpp: fix #6714
OK also for branch? git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34451 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
edd8a321bf
commit
3d91ff0e40
@ -1335,9 +1335,12 @@ bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features,
|
||||
// LFE encoding
|
||||
// XeTeX works without fontenc
|
||||
if (font_encoding() != "default" && language->lang() != "japanese"
|
||||
&& !useXetex) {
|
||||
&& !useXetex) {
|
||||
size_t fars = language_options.str().find("farsi");
|
||||
size_t arab = language_options.str().find("arabic");
|
||||
if (language->lang() == "arabic_arabi"
|
||||
|| language->lang() == "farsi") {
|
||||
|| language->lang() == "farsi" || fars != string::npos
|
||||
|| arab != string::npos) {
|
||||
os << "\\usepackage[" << from_ascii(font_encoding())
|
||||
<< ",LFE,LAE]{fontenc}\n";
|
||||
texrow.newline();
|
||||
|
Loading…
Reference in New Issue
Block a user