summaryrefslogtreecommitdiff
path: root/luaotfload.dtx
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-04-26 22:33:37 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-04-26 22:33:37 +0200
commitd16a93579dfec03a0dab4281b45f63d877fc4c88 (patch)
treed8c79b63718510b01bec511f0d15f485c8e4b8f4 /luaotfload.dtx
parent76569528866a34fb649611997792d936a283190b (diff)
downloadluaotfload-d16a93579dfec03a0dab4281b45f63d877fc4c88.tar.gz
install the new file: lookup in luaotfload.lua
Diffstat (limited to 'luaotfload.dtx')
-rw-r--r--luaotfload.dtx15
1 files changed, 13 insertions, 2 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index 18e01d8..8b3616a 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -1328,7 +1328,7 @@ add_to_callback("find_vf_file",
loadmodule"lib-dir.lua" --- required by luaofload-database.lua
loadmodule"override.lua" --- “luat-ovr”
-logs.set_loglevel(0)
+logs.set_loglevel(config.luaotfload.loglevel or 2)
% \end{macrocode}
% \CONTEXT does not support ofm, these lines were added in order to make it
@@ -1365,8 +1365,19 @@ loadmodule"colors.lua" --- “font-clr”
%
% \begin{macrocode}
+--- below lines already (2013-04-25) lead to warnings by
+--- the font loader
+--fonts.definers.resolvers.file = function (specification)
+-- specification.name = fonts.names.resolve('', '', specification)
+--end
+
fonts.definers.resolvers.file = function (specification)
- specification.name = fonts.names.resolve('', '', specification)
+ --inspect(specification)
+ if specification.lookup == "file" then
+ local found = fonts.names.crude_file_lookup(specification.name)
+ --local found = fonts.names.crude_file_lookup_verbose(specification.name)
+ specification.name = found[1]
+ end
end
% \end{macrocode}