From 7f21cfc24a41f8e5637d9ff2b4648dddab88627a Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 12 Dec 2019 13:53:13 +0100 Subject: [PATCH] Setup proper Arabic fonts in testfiles --- autotests/export/latex/languages/supported-languages.lyx | 9 +++++++++ .../languages/supported-languages_polyglossia-XeTeX.lyx | 1 + 2 files changed, 10 insertions(+) diff --git a/autotests/export/latex/languages/supported-languages.lyx b/autotests/export/latex/languages/supported-languages.lyx index d2ba3adcad..4155ab1aaa 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 fa58588ebc..53e07ade74 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}