[LyX/master] Setup proper Arabic fonts in testfiles
Juergen Spitzmueller
spitz at lyx.org
Thu Dec 12 12:37:38 UTC 2019
commit 7f21cfc24a41f8e5637d9ff2b4648dddab88627a
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Thu Dec 12 13:53:13 2019 +0100
Setup proper Arabic fonts in testfiles
---
.../export/latex/languages/supported-languages.lyx | 9 +++++++++
.../supported-languages_polyglossia-XeTeX.lyx | 1 +
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/autotests/export/latex/languages/supported-languages.lyx b/autotests/export/latex/languages/supported-languages.lyx
index d2ba3ad..4155ab1 100644
--- a/autotests/export/latex/languages/supported-languages.lyx
+++ b/autotests/export/latex/languages/supported-languages.lyx
@@ -5,6 +5,15 @@
\save_transient_properties true
\origin unavailable
\textclass scrartcl
+\begin_preamble
+% If fontspec (Polyglossia + XeTeX/LuaTeX) is used,
+% we need a proper Arabic font
+\AtBeginDocument{%
+ \@ifpackageloaded{fontspec}{%
+ \newfontfamily\arabicfont[Script=Arabic]{Amiri}%
+ }{}%
+}
+\end_preamble
\use_default_options false
\begin_modules
enumitem
diff --git a/autotests/export/latex/languages/supported-languages_polyglossia-XeTeX.lyx b/autotests/export/latex/languages/supported-languages_polyglossia-XeTeX.lyx
index fa58588..53e07ad 100644
--- a/autotests/export/latex/languages/supported-languages_polyglossia-XeTeX.lyx
+++ b/autotests/export/latex/languages/supported-languages_polyglossia-XeTeX.lyx
@@ -6,6 +6,7 @@
\origin unavailable
\textclass scrartcl
\begin_preamble
+\newfontfamily\arabicfont[Script=Arabic]{Amiri}
\newfontfamily\amharicfont{Noto Sans Ethiopic}
\newfontfamily\churchslavonicfont{Monomakh Unicode}
\newfontfamily\devanagarifont{Noto Serif Devanagari}
More information about the lyx-cvs
mailing list