From 9a9286967af9ded80bc2884588c5ce460c59dc77 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Thu, 31 Dec 2009 20:45:47 +0200 Subject: Make transparency work with adobe reader Switch to pdfliteral default (indirect) mode which will make sure text blocks are surrounded by BT ET (see PDFTeX manual, 7.12), which, for some obscure reason, adobe reader needs for transparency to work. --- luaotfload.dtx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luaotfload.dtx b/luaotfload.dtx index fd6a8b1..6c776e1 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -718,14 +718,14 @@ local function colorize(head) if prev.id == glyph and fonts.ids[prev.font].color == tfmdata.color then else local push = node.new(whatsit, 8) - push.mode = 2 + push.mode = 1 push.data = pushcolor head = node.insert_before(head, n, push) end if next.id == glyph and fonts.ids[next.font].color == tfmdata.color then else local pop = node.new(whatsit, 8) - pop.mode = 2 + pop.mode = 1 pop.data = popcolor head = node.insert_after(head, n, pop) end -- cgit v1.2.3