[latex3-commits] [git/LaTeX3-latex3-pdfresources] develop: remove/reduce fontspec firstaid, clashes with new l3backend (6a9fc5f)
Ulrike Fischer
fischer at troubleshooting-tex.de
Thu Mar 9 19:26:29 CET 2023
Repository : https://github.com/latex3/pdfresources
On branch : develop
Link : https://github.com/latex3/pdfresources/commit/6a9fc5f1d6e6e7281610d977ad4d7af8afd6a97f
>---------------------------------------------------------------
commit 6a9fc5f1d6e6e7281610d977ad4d7af8afd6a97f
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Thu Mar 9 19:26:29 2023 +0100
remove/reduce fontspec firstaid, clashes with new l3backend
>---------------------------------------------------------------
6a9fc5f1d6e6e7281610d977ad4d7af8afd6a97f
pdfmanagement-firstaid.dtx | 33 +++++++++------------------------
1 file changed, 9 insertions(+), 24 deletions(-)
diff --git a/pdfmanagement-firstaid.dtx b/pdfmanagement-firstaid.dtx
index 348ff8a..dee4d8e 100644
--- a/pdfmanagement-firstaid.dtx
+++ b/pdfmanagement-firstaid.dtx
@@ -96,36 +96,21 @@
% \subsection{Fontspec}
% When using luaLaTeX opacity is broken (issue \#30) as
% fontspec/luaotfload doesn't use the pdfmanagement but write to ExtGState directly
-% To repair this some new lua code is needed. This also
-% improves the color parsing and allows to use cmyk and spot colors as font colors.
-% It is also needed to use a patch version of \texttt{fontspec-luatex.sty} to
-% slightly change the way how the Opacity and Color key are handled.
-% The patch is only executed if luaotfload is new enough.
+% To repair this some new lua code is needed. It also needs a new fontspec
+% and a change in the color key.
% \begin{macrocode}
\sys_if_engine_luatex:T
{
- \lua_now:n
- {
- if~not~luaotfload.set_transparent_colorstack~
- then~
- tex.print("\\bool_gset_false:N\\g_@@_firstaid_fontspec_bool")~
- end
- }
\bool_if:NT \g_@@_firstaid_fontspec_bool
{
- \msg_info:nnn{pdfmanagement}{firstaid}{fontspec}
- \file_if_exist:nT { luaotfload-l3color-tmp.lua }
- {
- \lua_load_module:n { luaotfload-l3color-tmp.lua }
- }
-
- \declare at file@substitution{fontspec-luatex.sty}{fontspec-luatex-tmp-ltx.sty}
- \AddToHook{package/fontspec/after}
+ \@ifpackagelater{fontspec}{2023-03-10}
{
- \str_if_eq:vnF{ver at fontspec.sty}{2022/01/15~v2.8a~Font~selection~for~XeLaTeX~and~LuaLaTeX}
- {\msg_warning:nnn{pdfmanagement}{firstaid-changed}{fontspec}}
- }
- }
+ \__fontspec_keys_define_code:nnn {fontspec} {Color}
+ {
+ \tl_set:Nn \l__fontspec_hexcol_tl {#1}
+ }
+ }{}
+ }
}
% \end{macrocode}
% \subsection{Output routine}
More information about the latex3-commits
mailing list.