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

pdfpageresoures should be set globally #56

@wspr

Description

@wspr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions