Skip to content

Commit

Permalink
(XeTeX) avoid blowing out /GR in case Script= is set
Browse files Browse the repository at this point in the history
not that XeTeX test file isn't correct but this isn't the time to work on it...

closes #456

#456 was fixed recently in other updates
  • Loading branch information
wspr committed May 6, 2024
1 parent b3e048e commit 19d8c66
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fontspec-code-keyval.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,15 @@
% \begin{macrocode}
\@@_keys_define_code:nnn {fontspec-preparse} {Script}
{
%<XE> \keys_set:nn {fontspec-renderer} {Renderer=OpenType}
%<XE> \tl_if_empty:NT \l_@@_renderer_tl { \keys_set:nn {fontspec-renderer} {Renderer=OpenType} }
\tl_set:Nn \l_@@_script_name_tl {#1}
}
% \end{macrocode}
% Exactly the same:
% \begin{macrocode}
\@@_keys_define_code:nnn {fontspec-preparse} {Language}
{
%<XE> \keys_set:nn {fontspec-renderer} {Renderer=OpenType}
%<XE> \tl_if_empty:NT \l_@@_renderer_tl { \keys_set:nn {fontspec-renderer} {Renderer=OpenType} }
\tl_set:Nn \l_@@_lang_name_tl {#1}
}
% \end{macrocode}
Expand Down
6 changes: 6 additions & 0 deletions testfiles/graphite-awami.luatex.tlg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
TU/AwamiNastaliq-Regular.ttf(0)/m/n:
[AwamiNastaliq-Regular.ttf]:mode=harf;shaper=graphite2;script=arab;language=dflt;+tlig;
***************
Compilation 1 of test file completed with exit status 0
8 changes: 8 additions & 0 deletions testfiles/graphite-awami.lvt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
\input{fontspec-testsetup.tex}

\usepackage{fontspec}
\setmainfont{AwamiNastaliq-Regular.ttf}[Renderer=Graphite,Script=Arabic]
\begin{document}
وفا
\CURRNFSS
\end{document}
6 changes: 6 additions & 0 deletions testfiles/graphite-awami.tlg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
TU/AwamiNastaliq-Regular.ttf(0)/m/n:
"[AwamiNastaliq-Regular.ttf]/GR:mapping=tex-text;"
***************
Compilation 1 of test file completed with exit status 0

0 comments on commit 19d8c66

Please sign in to comment.