summaryrefslogtreecommitdiff
path: root/luaotfload.dtx
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-02-20 06:55:30 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-02-20 07:20:52 +0200
commit3d54718f98098de05b995e35de7e18b5239a710d (patch)
treeb4df1f3ee3f9dc51d1657086a54360262a3a95c2 /luaotfload.dtx
parent5410ccdac2dacc9eeca49f047e1dc0f9450c7c04 (diff)
downloadluaotfload-3d54718f98098de05b995e35de7e18b5239a710d.tar.gz
Updating to latest ConTeXt beta (2010.02.18)
+ Remove some, now unneeded, code.
Diffstat (limited to 'luaotfload.dtx')
-rw-r--r--luaotfload.dtx36
1 files changed, 2 insertions, 34 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index 52320be..22b87f2 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -484,24 +484,7 @@ luaotfload.loadmodule('font-otb.lua')
luaotfload.loadmodule('font-otn.lua')
luaotfload.loadmodule('font-ota.lua')
luaotfload.loadmodule('font-otc.lua')
-
-% \end{macrocode}
-%
-% \texttt{font-def.lua} calls the function \texttt{callback.register} to
-% register its callbacks. We override it with a dumb function so that it
-% does not register any callback. We will register the callbacks later.
-%
-% \begin{macrocode}
-
-do
- local temp = callback.register
- callback.register = function (...)
- return
- end
- luaotfload.loadmodule('font-def.lua')
- callback.register = temp
-end
-
+luaotfload.loadmodule('font-def.lua')
luaotfload.loadmodule('font-xtx.lua')
luaotfload.loadmodule('font-map.lua')
luaotfload.loadmodule('font-dum.lua')
@@ -517,21 +500,6 @@ fonts.enc.known = {}
% \end{macrocode}
%
-% We have to register a function in the |find_vf_file| callback in order to make everything work.
-%
-% \begin{macrocode}
-
-function luaotfload.find_vf_file(name)
- name = file.removesuffix(file.basename(name))
- local result = kpse.find_file(name, "vf") or ""
- if result == "" then
- result = kpse.find_file(name, "ovf") or ""
- end
- return result
-end
-
-% \end{macrocode}
-%
% Finally two functions
%
% \begin{macrocode}
@@ -541,7 +509,7 @@ function luaotfload.register_callbacks()
callback.add('hpack_filter', nodes.simple_font_handler, 'luaotfload.hpack_filter')
callback.reset('define_font')
callback.add('define_font', fonts.define.read, 'luaotfload.define_font', 1)
- callback.add('find_vf_file', luaotfload.find_vf_file, 'luaotfload.find_vf_file')
+ callback.add('find_vf_file', fonts.vf.find, 'luaotfload.find_vf_file')
end
function luaotfload.unregister_callbacks()