summaryrefslogtreecommitdiff
path: root/luaotfload.sty
blob: c01e9668150b231f247b4cf7990dc7a82bb9b30e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
\expandafter\ifx\csname ProvidesPackage\endcsname\relax
\expandafter\ifx\csname luaUseModule\endcsname\relax
\input luatextra.sty
\fi
\else
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{luaotfload}%
  [2009/04/08 v1.001 ConTeXt font loading system]
\RequirePackage{luatextra}
\fi

\expandafter\edef\csname otfl@AtEnd\endcsname{%
  \catcode64 \the\catcode64\relax
}

\catcode64 11

\newluaattribute\otfl@state
\newluaattribute\otfl@markbase
\newluaattribute\otfl@markdone
\newluaattribute\otfl@markmark
\newluaattribute\otfl@cursbase
\newluaattribute\otfl@curscurs
\newluaattribute\otfl@cursdone
\newluaattribute\otfl@kernpair
\newluaattribute\otfl@color

\def\otfl@off{
\luadirect{luaotfload.unregister_callbacks()}
}

\def\otfl@on{
\luadirect{luaotfload.register_callbacks()}
}

\luaUseModule{luaotfload}

\otfl@on

\otfl@AtEnd

\endinput