[latex3-commits] [latex3/latex3] main: Delay luaotfload transparency colorstack initialization until needed and available (60789652a)
github at latex-project.org
github at latex-project.org
Fri Nov 3 21:29:37 CET 2023
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/60789652ac727abf2f1f383b00bfb55ec77785d2
>---------------------------------------------------------------
commit 60789652ac727abf2f1f383b00bfb55ec77785d2
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Fri Nov 3 21:22:15 2023 +0100
Delay luaotfload transparency colorstack initialization until needed and available
>---------------------------------------------------------------
60789652ac727abf2f1f383b00bfb55ec77785d2
l3backend/CHANGELOG.md | 2 ++
l3backend/l3backend-opacity.dtx | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/l3backend/CHANGELOG.md b/l3backend/CHANGELOG.md
index 6d7b45437..c680a5104 100644
--- a/l3backend/CHANGELOG.md
+++ b/l3backend/CHANGELOG.md
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
this project uses date-based 'snapshot' version identifiers.
## [Unreleased]
+- Fixed interaction with luaotfload in LuaTeX regarding transparency colorstacks
+ by delaying initialization until after the colorstack has been initialized by l3opacity.
## [2023-10-23]
diff --git a/l3backend/l3backend-opacity.dtx b/l3backend/l3backend-opacity.dtx
index a87b76794..332f43104 100644
--- a/l3backend/l3backend-opacity.dtx
+++ b/l3backend/l3backend-opacity.dtx
@@ -310,7 +310,7 @@ local pdfmanagement_active do
end
if pdfmanagement_active and luaotfload and luaotfload.set_transparent_colorstack then
- luaotfload.set_transparent_colorstack(token.create'c__opacity_backend_stack_int'.index)
+ luaotfload.set_transparent_colorstack(function() return token.create'c__opacity_backend_stack_int'.index end)
local transparent_register = {
token.create'pdfmanagement_add:nnn',
More information about the latex3-commits
mailing list.