[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Save font.each as font.originaleach as in ConTeXt (57b819d)

Marcel Fabian Krüger tex at 2krueger.de
Tue Aug 27 00:13:36 CEST 2019


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/57b819d8e519ae1babbf80a913dc39cbe0195ec8

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

commit 57b819d8e519ae1babbf80a913dc39cbe0195ec8
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Tue Aug 27 00:13:36 2019 +0200

    Save font.each as font.originaleach as in ConTeXt


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

57b819d8e519ae1babbf80a913dc39cbe0195ec8
 src/luaotfload-init.lua                            | 8 ++++++++
 texmf/tex/latex-dev/luaotfload/luaotfload-init.lua | 8 ++++++++
 2 files changed, 16 insertions(+)

diff --git a/src/luaotfload-init.lua b/src/luaotfload-init.lua
index 4c55864..cefbc4a 100644
--- a/src/luaotfload-init.lua
+++ b/src/luaotfload-init.lua
@@ -462,6 +462,14 @@ end --- [init_adapt]
 
 local init_main = function ()
 
+  --[[doc--
+
+      First save a copy of font.each in order to also catch old-style fonts
+
+  --doc]]--
+
+  font.originaleach = font.each
+
   local load_fontloader_module = luaotfload.loaders.fontloader
   local ignore_module          = luaotfload.loaders.ignore
 
diff --git a/texmf/tex/latex-dev/luaotfload/luaotfload-init.lua b/texmf/tex/latex-dev/luaotfload/luaotfload-init.lua
index 4c55864..cefbc4a 100644
--- a/texmf/tex/latex-dev/luaotfload/luaotfload-init.lua
+++ b/texmf/tex/latex-dev/luaotfload/luaotfload-init.lua
@@ -462,6 +462,14 @@ end --- [init_adapt]
 
 local init_main = function ()
 
+  --[[doc--
+
+      First save a copy of font.each in order to also catch old-style fonts
+
+  --doc]]--
+
+  font.originaleach = font.each
+
   local load_fontloader_module = luaotfload.loaders.fontloader
   local ignore_module          = luaotfload.loaders.ignore
 





More information about the latex3-commits mailing list