summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/luatexja/ltj-jfmglue.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luatexja/ltj-jfmglue.lua')
-rw-r--r--Master/texmf-dist/tex/luatex/luatexja/ltj-jfmglue.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/luatex/luatexja/ltj-jfmglue.lua b/Master/texmf-dist/tex/luatex/luatexja/ltj-jfmglue.lua
index 5510305dca1..685cea7191d 100644
--- a/Master/texmf-dist/tex/luatex/luatexja/ltj-jfmglue.lua
+++ b/Master/texmf-dist/tex/luatex/luatexja/ltj-jfmglue.lua
@@ -31,9 +31,10 @@ local if_lang_ja
do
local lang_ja = luatexja.lang_ja
local getlang = node.direct.getlang
+ -- glyph with font number 0 (\nullfont) is always considered an ALchar node
if_lang_ja = getlang
- and function (n) return getlang(n)==lang_ja end
- or function (n) return getfield(n,'lang')==lang_ja end
+ and function (n) return (getlang(n)==lang_ja)and(getfont(n)~=0) end
+ or function (n) return (getfield(n,'lang')==lang_ja)and(getfont(n)~=0) end
end
local has_attr = node.direct.has_attribute