[latex3-commits] [git/LaTeX3-latex3-luaotfload] keepnames: Add configuration option to keep weird names (990075a)

Marcel Fabian Krüger tex at 2krueger.de
Thu Aug 5 02:46:30 CEST 2021


Repository : https://github.com/latex3/luaotfload
On branch  : keepnames
Link       : https://github.com/latex3/luaotfload/commit/990075aa715ca751f9e2e45964d9486c1ff39e03

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

commit 990075aa715ca751f9e2e45964d9486c1ff39e03
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Thu Aug 5 02:46:30 2021 +0200

    Add configuration option to keep weird names


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

990075aa715ca751f9e2e45964d9486c1ff39e03
 src/luaotfload-configuration.lua | 2 ++
 src/luaotfload-init.lua          | 6 ++++++
 2 files changed, 8 insertions(+)

diff --git a/src/luaotfload-configuration.lua b/src/luaotfload-configuration.lua
index 3484598..84bd13c 100644
--- a/src/luaotfload-configuration.lua
+++ b/src/luaotfload-configuration.lua
@@ -218,6 +218,7 @@ local default_config = {
     version        = luaotfload.version,
     statistics     = false,
     termwidth      = nil,
+    keepnames      = true,
   },
   paths = {
     names_dir           = "names",
@@ -611,6 +612,7 @@ local option_spec = {
         return w
       end,
     },
+    keepnames       = { in_t = boolean_t, },
   },
   paths = {
     names_dir           = { in_t = string_t, },
diff --git a/src/luaotfload-init.lua b/src/luaotfload-init.lua
index 69596ac..bc7e32d 100644
--- a/src/luaotfload-init.lua
+++ b/src/luaotfload-init.lua
@@ -551,10 +551,16 @@ local function init_post_load_agl ()
 
 end
 
+local function init_post_apply_keepnames ()
+  local keepnames = config.luaotfload.misc.keepnames
+  luaotfload.fontloader.fonts.privateoffsets.keepnames = keepnames
+end
+
 --- (unit -> unit) list
 local init_post_actions = {
   init_post_install_callbacks,
   init_post_load_agl,
+  init_post_apply_keepnames
 }
 
 --- unit -> size_t





More information about the latex3-commits mailing list.