summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/csplain/fonts/luafonts.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-12-21 17:18:31 +0000
committerKarl Berry <karl@freefriends.org>2012-12-21 17:18:31 +0000
commit1b512e2a067c98afcd3edcbdfe2743953ddd337d (patch)
tree581c5b6baf825a2d9789259d2a857c38cafb7224 /Master/texmf-dist/tex/csplain/fonts/luafonts.tex
parent55f452fc0f663684549d2d2d603fb5ac7320f45a (diff)
csplain (20dec12)
git-svn-id: svn://tug.org/texlive/trunk@28597 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/csplain/fonts/luafonts.tex')
-rw-r--r--Master/texmf-dist/tex/csplain/fonts/luafonts.tex27
1 files changed, 27 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/csplain/fonts/luafonts.tex b/Master/texmf-dist/tex/csplain/fonts/luafonts.tex
new file mode 100644
index 00000000000..cc157a5b1e0
--- /dev/null
+++ b/Master/texmf-dist/tex/csplain/fonts/luafonts.tex
@@ -0,0 +1,27 @@
+% I don't understand this. This is a result of my reverse engeneering of the
+% fontspec package.
+% LuaTeX needs these \directlua in order to \font primitive works like in XeTeX.
+% Petr Olsak Nov. 2012
+
+%\iffalse
+\message{processing luaotfload.lua }
+\directlua{luatexbase = luatexbase or {}
+ luatexbase.luatexversion = \the\luatexversion\space
+ luatexbase.luatexrevision = \luatexrevision\space
+ require('luatexbase.attr')
+ require('luatexbase.cctb')
+ require('luatexbase.modutils')
+ oriwrite = texio.write_nl % I don't need to see unusual info
+ function texio.write_nl(...) end
+ require('luatexbase.mcb')
+ luatexbase.require_module('lualibs')
+ luatexbase.require_module('luaotfload')
+ texio.write_nl = oriwrite % return to original meaning
+}
+%\fi
+%\directlua {
+% dofile(kpse.find_file("luatex-fonts.lua","tex"))
+%}
+\global\let\luafonts=\relax
+
+\endinput