[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Make luaotfload definer accessible (091edd7)

Marcel Fabian Krüger tex at 2krueger.de
Mon Nov 11 15:39:39 CET 2019


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/091edd78f7ea9422febd86584575da4259157827

>---------------------------------------------------------------

commit 091edd78f7ea9422febd86584575da4259157827
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Mon Nov 11 15:39:39 2019 +0100

    Make luaotfload definer accessible


>---------------------------------------------------------------

091edd78f7ea9422febd86584575da4259157827
 src/luaotfload-loaders.lua | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/luaotfload-loaders.lua b/src/luaotfload-loaders.lua
index 2865bf5..1046b8d 100644
--- a/src/luaotfload-loaders.lua
+++ b/src/luaotfload-loaders.lua
@@ -209,9 +209,11 @@ local install_callbacks = function ()
   create_callback ("luaotfload.patch_font",        "simple", dummy_function)
   create_callback ("luaotfload.patch_font_unsafe", "simple", dummy_function)
   purge_define_font ()
-  local definer = config.luaotfload.run.definer
+  local definer = config.luaotfload.run.definer or "patch"
+  local selected_definer = definers[definer]
+  luaotfload.define_font = selected_definer
   luatexbase.add_to_callback ("define_font",
-                              definers[definer or "patch"],
+                              selected_definer,
                               "luaotfload.define_font",
                               1)
   return true





More information about the latex3-commits mailing list