[latex3-commits] [git/LaTeX3-latex3-luaotfload] new-fontloader-2012: Fix contextual kerning fontloader bug (85d8a3f)

Marcel Fabian Krüger tex at 2krueger.de
Tue Dec 29 06:50:31 CET 2020


Repository : https://github.com/latex3/luaotfload
On branch  : new-fontloader-2012
Link       : https://github.com/latex3/luaotfload/commit/85d8a3f00cff6e5e3393b0e022d441a85c9b616a

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

commit 85d8a3f00cff6e5e3393b0e022d441a85c9b616a
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Tue Dec 29 06:46:33 2020 +0100

    Fix contextual kerning fontloader bug


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

85d8a3f00cff6e5e3393b0e022d441a85c9b616a
 src/auto/fontloader-2020-12-29.lua               | 8 ++++----
 src/auto/luaotfload-status.lua                   | 8 ++++----
 src/fontloader/misc/fontloader-font-ots.lua      | 4 ++--
 src/fontloader/runtime/fontloader-basics-gen.lua | 2 +-
 testfiles/aaaaa-luakern.tlg                      | 2 +-
 5 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/auto/fontloader-2020-12-29.lua b/src/auto/fontloader-2020-12-29.lua
index b674d9e..8d95fa3 100644
--- a/src/auto/fontloader-2020-12-29.lua
+++ b/src/auto/fontloader-2020-12-29.lua
@@ -1,6 +1,6 @@
 --[[info-----------------------------------------------------------------------
   Luaotfload fontloader package
-  build 2020-12-29 04:35:32
+  build 2020-12-29 06:44:39
 -------------------------------------------------------------------------------
 
   © 2020 PRAGMA ADE / ConTeXt Development Team
@@ -21824,7 +21824,7 @@ end)
 end --- [luaotfload, fontloader-2020-12-29.lua scope for “font-ota”] ---
 
 
-do  --- [luaotfload, fontloader-2020-12-29.lua scope for “font-ots” 844d88db41d86c01e4770ca38a151bcd] ---
+do  --- [luaotfload, fontloader-2020-12-29.lua scope for “font-ots” 83d8e80e0d158b5415734aac26180a2e] ---
 
 if not modules then modules={} end modules ['font-ots']={ 
  version=1.001,
@@ -22989,7 +22989,7 @@ function chainprocs.gsub_ligature(head,start,stop,dataset,sequence,currentlookup
  return head,start,false,0,false
 end
 function chainprocs.gpos_single(head,start,stop,dataset,sequence,currentlookup,rlmode,skiphash,chainindex)
- if has_glyph_option(start,no_right_kern_code) then
+ if not has_glyph_option(start,no_right_kern_code) then
   local mapping=currentlookup.mapping
   if mapping==nil then
    mapping=getmapping(dataset,sequence,currentlookup)
@@ -23017,7 +23017,7 @@ function chainprocs.gpos_single(head,start,stop,dataset,sequence,currentlookup,r
  return head,start,false
 end
 function chainprocs.gpos_pair(head,start,stop,dataset,sequence,currentlookup,rlmode,skiphash,chainindex) 
- if has_glyph_option(start,no_right_kern_code) then
+ if not has_glyph_option(start,no_right_kern_code) then
   local mapping=currentlookup.mapping
   if mapping==nil then
    mapping=getmapping(dataset,sequence,currentlookup)
diff --git a/src/auto/luaotfload-status.lua b/src/auto/luaotfload-status.lua
index 455e418..0047664 100644
--- a/src/auto/luaotfload-status.lua
+++ b/src/auto/luaotfload-status.lua
@@ -1,6 +1,6 @@
 return {
  ["hashes"]={
-  { "fontloader-2020-12-29.lua", "3a83e8a4b827a6848caeed799560baf5" },
+  { "fontloader-2020-12-29.lua", "7a9a2dc9a498bbcdc842d9f51969697f" },
   { "fontloader-util-fil.lua", "aae2a2add764144bb58dd8216fd59260" },
   { "fontloader-util-str.lua", "c975ff7bbd178163cf47d9e9296c8b4b" },
   { "fontloader-l-unicode.lua", "f368874f11f3c525de5864fd413e4b24" },
@@ -35,7 +35,7 @@ return {
   { "fontloader-font-ocl.lua", "797b5c71bf819c5f4fb314a4d646e9a7" },
   { "fontloader-font-osd.lua", "73c9531c79df5ada320cb20777f7ed49" },
   { "fontloader-font-otc.lua", "0f12230ea07b5151f75d52726977e91f" },
-  { "fontloader-font-ots.lua", "844d88db41d86c01e4770ca38a151bcd" },
+  { "fontloader-font-ots.lua", "83d8e80e0d158b5415734aac26180a2e" },
   { "fontloader-font-ota.lua", "ad1d5de06400f88829509e1f3ff2b473" },
   { "fontloader-font-oup.lua", "6f46aa00ae1c20c43f8ffaf329dc8695" },
   { "fontloader-font-otj.lua", "8de59cb9b043e5f73c6b9f7cc8f6978e" },
@@ -93,7 +93,7 @@ return {
   ["committer"]="Marcel Fabian Krüger <tex at 2krueger.de>",
   ["description"]="v3.16-dev/2020-09-03",
   ["loader"]="fontloader-2020-12-29.lua",
-  ["revision"]="a9f6536caee6cb75b8f383c76b8e64eaaf901241",
-  ["timestamp"]="2020-12-17 16:44:08 +0100",
+  ["revision"]="0bbe8981dae5a2d2cd40c8d836e19e9d879f009f",
+  ["timestamp"]="2020-12-29 04:41:42 +0100",
  },
 }
\ No newline at end of file
diff --git a/src/fontloader/misc/fontloader-font-ots.lua b/src/fontloader/misc/fontloader-font-ots.lua
index 617c249..029cffa 100644
--- a/src/fontloader/misc/fontloader-font-ots.lua
+++ b/src/fontloader/misc/fontloader-font-ots.lua
@@ -1532,7 +1532,7 @@ function chainprocs.gsub_ligature(head,start,stop,dataset,sequence,currentlookup
 end
 
 function chainprocs.gpos_single(head,start,stop,dataset,sequence,currentlookup,rlmode,skiphash,chainindex)
-    if has_glyph_option(start,no_right_kern_code) then
+    if not has_glyph_option(start,no_right_kern_code) then
         local mapping = currentlookup.mapping
         if mapping == nil then
             mapping = getmapping(dataset,sequence,currentlookup)
@@ -1561,7 +1561,7 @@ function chainprocs.gpos_single(head,start,stop,dataset,sequence,currentlookup,r
 end
 
 function chainprocs.gpos_pair(head,start,stop,dataset,sequence,currentlookup,rlmode,skiphash,chainindex) -- todo: injections ?
-    if has_glyph_option(start,no_right_kern_code) then
+    if not has_glyph_option(start,no_right_kern_code) then
         local mapping = currentlookup.mapping
         if mapping == nil then
             mapping = getmapping(dataset,sequence,currentlookup)
diff --git a/src/fontloader/runtime/fontloader-basics-gen.lua b/src/fontloader/runtime/fontloader-basics-gen.lua
index 5a6e90c..1cc8537 100644
--- a/src/fontloader/runtime/fontloader-basics-gen.lua
+++ b/src/fontloader/runtime/fontloader-basics-gen.lua
@@ -189,7 +189,7 @@ local readables = { }
 local usingjit  = jit
 
 if not caches.namespace or caches.namespace == "" or caches.namespace == "context" then
-    caches.namespace = 'generic'
+    caches.namespace = 'generic-dev'
 end
 
 do
diff --git a/testfiles/aaaaa-luakern.tlg b/testfiles/aaaaa-luakern.tlg
index 04a6e3d..64c29a0 100644
--- a/testfiles/aaaaa-luakern.tlg
+++ b/testfiles/aaaaa-luakern.tlg
@@ -1,6 +1,6 @@
 This is a generated file for the l3build validation system.
 Don't change this file in any respect.
-3.16-dev with fontloaderxxx2020xxx12xxx17.lua
+3.16-dev with fontloaderxxx2020xxx12xxx29.lua
 Completed box being shipped out [1]
 \vbox(633.0+0.0)x407.0, direction TLT
 .\glue 16.0





More information about the latex3-commits mailing list.