diff options
| -rw-r--r-- | otfl-font-msc.lua | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/otfl-font-msc.lua b/otfl-font-msc.lua index c858e18..bb04927 100644 --- a/otfl-font-msc.lua +++ b/otfl-font-msc.lua @@ -174,7 +174,9 @@ end  function luaotfload.colorize(head)     local h = luaotfload.node_colorize(head)     if res then -      tex.pdfpageresources = format("%s\n/ExtGState<<%s>>", tex.pdfpageresources, res) +      local r = "/ExtGState<<"..res..">>" +      local s = tex.pdfpageresources:find(r) and "" or r +      tex.pdfpageresources = tex.pdfpageresources..s     end     return h  end  | 
