summaryrefslogtreecommitdiff
path: root/luaotfload.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'luaotfload.dtx')
-rw-r--r--luaotfload.dtx13
1 files changed, 12 insertions, 1 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index 83885a0..7beca09 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -1917,7 +1917,7 @@ request_resolvers.path = function (specification)
end
% \end{macrocode}
-% {\bfseries EXPERIMENTAL}
+% {\bfseries EXPERIMENTAL}:
% \identifier{kpse}-only resolver, for those who can do without system
% fonts.
%
@@ -1944,6 +1944,17 @@ request_resolvers.kpse = function (specification)
end
% \end{macrocode}
+% Also {\bfseries EXPERIMENTAL}:
+% custom file resolvers via callback.
+%
+% \begin{macrocode}
+create_callback("luaotfload.resolve_font", "simple", dummy_function)
+
+request_resolvers.my = function (specification)
+ call_callback("luaotfload.resolve_font", specification)
+end
+
+% \end{macrocode}
% We create a callback for patching fonts on the fly, to be used by other
% packages.
% It initially contains the empty function that we are going to override