[latex3-commits] [latex3/luaotfload] dev: Define fontname before using it (3a2155b6)
github at latex-project.org
github at latex-project.org
Sun Nov 17 11:50:32 CET 2024
Repository : https://github.com/latex3/luaotfload
On branch : dev
Link : https://github.com/latex3/luaotfload/commit/3a2155b6634062ffaa2f98e09bdd0b27c8325b5f
>---------------------------------------------------------------
commit 3a2155b6634062ffaa2f98e09bdd0b27c8325b5f
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Sun Nov 17 11:50:32 2024 +0100
Define fontname before using it
>---------------------------------------------------------------
3a2155b6634062ffaa2f98e09bdd0b27c8325b5f
src/luaotfload-auxiliary.lua | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/luaotfload-auxiliary.lua b/src/luaotfload-auxiliary.lua
index 92a84fc9..ca71f461 100644
--- a/src/luaotfload-auxiliary.lua
+++ b/src/luaotfload-auxiliary.lua
@@ -486,6 +486,7 @@ function aux.provides_script(font_id, asked_script)
end
return false
else
+ local fontname = tfmdata.fontname
local features = get_features (tfmdata)
if features == false then
logreport ("log", 1, "aux", "font no %d lacks a features table", font_id)
@@ -556,6 +557,7 @@ function aux.provides_language(font_id, asked_script, asked_language)
asked_language = stringlower(asked_language)
local tfmdata = identifiers[font_id]
if not tfmdata then return false end
+ local fontname = tfmdata.fontname
local features = get_features (tfmdata)
if features == false then
logreport ("log", 1, "aux", "font no %d lacks a features table", font_id)
@@ -712,6 +714,7 @@ function aux.provides_feature(font_id, asked_script,
end
return false
else
+ local fontname = tfmdata.fontname
asked_language = stringlower(asked_language)
local features = get_features (tfmdata)
if features == false then
More information about the latex3-commits
mailing list.