summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/oberdiek
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-05-14 18:15:24 +0000
committerKarl Berry <karl@freefriends.org>2013-05-14 18:15:24 +0000
commitf8bd56b8f2ca104927b7faa5daa6a9558d7eb15f (patch)
treed1f322385943c40cfc816cc2079ff06dbdbdeb14 /Master/texmf-dist/tex/generic/oberdiek
parent991d1a437311e078899435b7f33188ad11fed86f (diff)
hologo patch for current luatex from eroux
git-svn-id: svn://tug.org/texlive/trunk@30467 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/oberdiek')
-rw-r--r--Master/texmf-dist/tex/generic/oberdiek/hologo.sty12
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