[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Use x-height defined by font (again) (80c3123)

Marcel Fabian Krüger tex at 2krueger.de
Fri Sep 13 00:11:46 CEST 2019


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/80c31230c1bdc113ea47f86e65a3e289beeceb06

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

commit 80c31230c1bdc113ea47f86e65a3e289beeceb06
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Fri Sep 13 00:11:46 2019 +0200

    Use x-height defined by font (again)
    
    Fixes a bug introduced in 0ce5fe0057d9


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

80c31230c1bdc113ea47f86e65a3e289beeceb06
 src/luaotfload-auxiliary.lua                            | 2 +-
 texmf/tex/latex-dev/luaotfload/luaotfload-auxiliary.lua | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/luaotfload-auxiliary.lua b/src/luaotfload-auxiliary.lua
index 29e4116..8a490e7 100644
--- a/src/luaotfload-auxiliary.lua
+++ b/src/luaotfload-auxiliary.lua
@@ -285,7 +285,7 @@ luaotfload_callbacks [#luaotfload_callbacks + 1] = {
 local function set_xheight(tfmdata)
   local parameters = tfmdata.parameters
   if not parameters then return end
-  if not (parameters.x_height or parameters[5] or 0) == 0 then return end
+  if not ((parameters.x_height or parameters[5] or 0) == 0) then return end
   if tfmdata.characters and tfmdata.characters[120] then
     parameters.x_height = tfmdata.characters[120].height
   else
diff --git a/texmf/tex/latex-dev/luaotfload/luaotfload-auxiliary.lua b/texmf/tex/latex-dev/luaotfload/luaotfload-auxiliary.lua
index 29e4116..8a490e7 100644
--- a/texmf/tex/latex-dev/luaotfload/luaotfload-auxiliary.lua
+++ b/texmf/tex/latex-dev/luaotfload/luaotfload-auxiliary.lua
@@ -285,7 +285,7 @@ luaotfload_callbacks [#luaotfload_callbacks + 1] = {
 local function set_xheight(tfmdata)
   local parameters = tfmdata.parameters
   if not parameters then return end
-  if not (parameters.x_height or parameters[5] or 0) == 0 then return end
+  if not ((parameters.x_height or parameters[5] or 0) == 0) then return end
   if tfmdata.characters and tfmdata.characters[120] then
     parameters.x_height = tfmdata.characters[120].height
   else





More information about the latex3-commits mailing list