summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--luaotfload.dtx18
-rw-r--r--luaotfload.lua5
2 files changed, 21 insertions, 2 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index 0205898..8b468bb 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -696,8 +696,9 @@ and the derived files
% will verify if “Iwona Regular” is found in the database and can be
% readily requested in a document.
%
-% If you are unsure about the actual font name, then you can add the
-% \verb|-F| switch to the command line to enable approximate matching.
+% If you are unsure about the actual font name, then add the
+% \verb|-F| (or \verb|--fuzzy|) switch to the command line to enable
+% approximate matching.
% Suppose you cannot precisely remember if the variant of
% \identifier{Iwona} you are looking for was “Bright” or “Light”.
% The query
@@ -711,6 +712,19 @@ and the derived files
% \noindent
% will tell you that indeed the latter name is correct.
%
+% Basic information about fonts in the database can be displayed
+% using the \verb|-i| option (\verb|--info|).
+% \begin{quote}
+% \begin{verbatim}
+% fontdbutil -F --find="Iwona Light Italic"
+% \end{verbatim}
+% \end{quote}
+% \noindent
+% The meaning of the printed values is described in section 4.4 of the
+% \LUATEX reference manual.\footnote{%
+% In \TEX Live: \fileent{texmf-dist/doc/luatex/base/luatexref-t.pdf}.
+% }
+%
% \verb|fontdbutil --help| will list the available command line
% switches, including some not discussed in detail here.
%
diff --git a/luaotfload.lua b/luaotfload.lua
index 256c792..c85041b 100644
--- a/luaotfload.lua
+++ b/luaotfload.lua
@@ -25,6 +25,9 @@ local reset_callback, call_callback =
local dummy_function = function () end
+_G.luaotfload = _G.luaotfload or { }
+local luaotfload = _G.luaotfload
+
--[[doc--
No final decision has been made on how to handle font definition. At
the moment, there are three candidates: The \identifier{generic}
@@ -32,6 +35,7 @@ callback as hard-coded in the font loader, the \identifier{old}
wrapper, and a simplified version of the latter (\identifier{patch})
that does nothing besides applying font patches.
--doc]]--
+
luaotfload.font_definer = "patch" --- | “generic” | “old”
local error, warning, info, log =
@@ -346,6 +350,7 @@ local patch_defined_font = function (...)
if type(tfmdata) == "table" then
call_callback("luaotfload.patch_font", tfmdata)
end
+ -- inspect(table.keys(tfmdata))
return tfmdata
end