diff options
-rw-r--r-- | Master/texmf-dist/tex/generic/oberdiek/hologo.sty | 12 |
1 files changed, 8 insertions, 4 deletions
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 |