summaryrefslogtreecommitdiff
path: root/luaotfload.dtx
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2011-10-07 02:33:57 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2011-10-07 02:33:57 +0200
commit568d22df0de14bd41a178279ad878590533507e6 (patch)
treee3cc26e803d8a7d9aaca7c4a7e892d53ed709818 /luaotfload.dtx
parent18cac19a8a01e516062e9f2bf6eb6bc2894a8991 (diff)
downloadluaotfload-568d22df0de14bd41a178279ad878590533507e6.tar.gz
Simplify
Diffstat (limited to 'luaotfload.dtx')
-rw-r--r--luaotfload.dtx24
1 files changed, 6 insertions, 18 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index 6542f8d..7ee3343 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -556,28 +556,16 @@ require('otfl-fonts-cbk.lua')
require('otfl-font-clr.lua')
% \end{macrocode}
%
-% \subsection{Post-processing TFM table}
+% \subsection{Font patching callback}
%
-% Here we do some final touches to the loaded TFM table before passing it to
-% the \tex end.
-%
-% First we create a callback for patching fonts on the fly, to be used by
-% other packages.
+% we provide a callback for patching fonts on the fly, to be used by other
+% packages.
% \begin{macrocode}
luatexbase.create_callback("luaotfload.patch_font", "simple", function() end)
-% \end{macrocode}
-%
-% then define a function where font manipulation will take place.
-%
-% \begin{macrocode}
-local function def_font(...)
+
+local function definefont(...)
local fontdata = fonts.definers.read(...)
if type(fontdata) == "table" then
-% \end{macrocode}
-%
-% Execute any registered font patching callbacks.
-%
-% \begin{macrocode}
luatexbase.call_callback("luaotfload.patch_font", fontdata)
end
return fontdata
@@ -603,7 +591,7 @@ luatexbase.add_to_callback("hpack_filter",
"luaotfload.hpack_filter")
luatexbase.reset_callback("define_font")
luatexbase.add_to_callback("define_font",
- def_font,
+ definefont,
"luaotfload.define_font", 1)
%luatexbase.add_to_callback("find_vf_file",
% fonts.vf.find,