summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-05-21 16:31:38 +0300
committerKhaled Hosny <khaledhosny@eglug.org>2010-05-21 16:31:38 +0300
commitbff41b24741eabf59aae3f967fa7569a69c400b0 (patch)
tree5f29b2399cd8c19580041f914a6e15b28d48fb9d
parent7cdd31598491798554b17c98b60ddc2d82e7d5b4 (diff)
downloadluaotfload-bff41b24741eabf59aae3f967fa7569a69c400b0.tar.gz
Fix issue with first allocated attribute being 0
See http://tug.org/pipermail/lualatex-dev/2010-May/000525.html.
-rw-r--r--luaotfload.dtx5
1 files changed, 4 insertions, 1 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index a1e5778..ff156c2 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -624,10 +624,13 @@ end
% \end{macrocode}
%
% The attributes are allocated here. The |otfl@| prefix is added to prevent
-% name collision.
+% name collision. The first attribute, |otfl@dummy|, is a dummy attribute
+% because \ConTeXt\ code expects attribute |0| not to be used, but
+% |\newluatexattribute| starts counting from zero.
%
% \begin{macrocode}
+\newluatexattribute\otfl@dummy
\newluatexattribute\otfl@state
\newluatexattribute\otfl@markbase
\newluatexattribute\otfl@markdone