From f8bd56b8f2ca104927b7faa5daa6a9558d7eb15f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 14 May 2013 18:15:24 +0000 Subject: hologo patch for current luatex from eroux git-svn-id: svn://tug.org/texlive/trunk@30467 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/generic/oberdiek/hologo.sty | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Master/texmf-dist/tex/generic/oberdiek') diff --git a/Master/texmf-dist/tex/generic/oberdiek/hologo.sty b/Master/texmf-dist/tex/generic/oberdiek/hologo.sty index 642bce61e03..29167201e6a 100644 --- a/Master/texmf-dist/tex/generic/oberdiek/hologo.sty +++ b/Master/texmf-dist/tex/generic/oberdiek/hologo.sty @@ -1337,12 +1337,16 @@ $ #1{\string ^^^^0395}{\string ^^^^03b5}% \def\HOLOGO@IfCharExists#1{% \ifnum \directlua{% - if font and font.fonts and font.current then % - local f = font.fonts[font.current()]% + if luaotfload and luaotfload.aux then % + if luaotfload.aux.font_has_glyph(font.current(), \number#1) then % + tex.print("1") % + end % + elseif font and font.fonts and font.current then % + local f = font.fonts[font.current()] % if f.characters and f.characters[\number#1] then % - tex.print("1")% + tex.print("1") % end % - end% + end % }0=\ltx@zero \expandafter\ltx@secondoftwo \else -- cgit v1.2.3