diff options
author | Robert Alessi <alessi@robertalessi.net> | 2020-02-09 11:28:36 +0100 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2020-02-09 11:28:36 +0100 |
commit | 505d978cc30863a8ecfecf281c43ecf6982fb97a (patch) | |
tree | 95e78fab3c264eb9b622590afd5e3fcaa0f07348 | |
parent | 350aaae632c485af3b136301b0763ce61c5c8b66 (diff) | |
download | arabluatex-505d978cc30863a8ecfecf281c43ecf6982fb97a.tar.gz |
load the default Arabic font with luaotfload
-rw-r--r-- | arabluatex.dtx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arabluatex.dtx b/arabluatex.dtx index efc5d70..5e531a0 100644 --- a/arabluatex.dtx +++ b/arabluatex.dtx | |||
@@ -4328,7 +4328,7 @@ | |||
4328 | \RequirePackage{luacolor} | 4328 | \RequirePackage{luacolor} |
4329 | \RequirePackage{etoolbox} | 4329 | \RequirePackage{etoolbox} |
4330 | \RequirePackage{arabluatex-patch} | 4330 | \RequirePackage{arabluatex-patch} |
4331 | \RequirePackage{fontspec} | 4331 | \RequirePackage{luaotfload} |
4332 | \RequirePackage{luacode} | 4332 | \RequirePackage{luacode} |
4333 | \RequirePackage{xparse} | 4333 | \RequirePackage{xparse} |
4334 | \RequirePackage{adjustbox} | 4334 | \RequirePackage{adjustbox} |
@@ -4348,9 +4348,10 @@ | |||
4348 | % and attempt to load the Amiri font which is included in \TeX{}live: | 4348 | % and attempt to load the Amiri font which is included in \TeX{}live: |
4349 | % \begin{macrocode} | 4349 | % \begin{macrocode} |
4350 | \AtBeginDocument{\ifdefined\arabicfont\relax\else | 4350 | \AtBeginDocument{\ifdefined\arabicfont\relax\else |
4351 | \PackageWarning{arabluatex}{\string\arabicfont\ is not defined.^^J | 4351 | \PackageInfo{arabluatex}{% |
4352 | I will try to load Amiri}% | 4352 | \string\arabicfont\ is not defined.\MessageBreak |
4353 | \newfontfamily\arabicfont[Script=Arabic]{Amiri}\fi}% | 4353 | arabluatex will try to load Amiri}% |
4354 | \font \arabicfont = {name:Amiri:script=arab} at \f@size pt\fi}% | ||
4354 | % \end{macrocode} | 4355 | % \end{macrocode} |
4355 | % \begin{macro}{\setRL} | 4356 | % \begin{macro}{\setRL} |
4356 | % This neutralizes what may be defined by other packages: | 4357 | % This neutralizes what may be defined by other packages: |