Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

pdfpageresoures should be set globally #56

Open
wspr opened this issue Jun 23, 2014 · 2 comments
Open

pdfpageresoures should be set globally #56

wspr opened this issue Jun 23, 2014 · 2 comments

Comments

@wspr
Copy link
Collaborator

wspr commented Jun 23, 2014

Debugged by Robert on tex.sx:

The example can be further reduced (and plainified) by removing the preview package -- a simple \vbox is enough:

\input luaotfload.sty
\font\x="texgyrebonum-bold.otf:color=FF000077" at 24pt\x
AAA \newbox\y\setbox\y\vbox{AAA}\unvbox\y
\bye

The effect is that the setting of the pdfpageresources (which must contain the transparency spec) does not propagate out of the vbox. (What I do not quite understand, though, is why there is no transparency even though the transparent font is also used outside of the vbox.)

The pdfpageresoures are set in luaotfload-colors.lua, in the function color_handler, near the end of the file. Changing the line

  tex.pdfpageresources=tpr

to

  tex.set('global','pdfpageresources',tpr)

seems to resolve the issue.

@khaledhosny
Copy link
Owner

This repository is no longer maintained, this should be reported against https://github.com/lualatex/luaotfload/.

@wspr
Copy link
Collaborator Author

wspr commented Jun 23, 2014

Oops! I just googled and chose the first link :) Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants