[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Do not load math parameters form text fonts (378852c)
Marcel Fabian Krüger
tex at 2krueger.de
Fri May 1 02:06:53 CEST 2020
Repository : https://github.com/latex3/luaotfload
On branch : dev
Link : https://github.com/latex3/luaotfload/commit/378852c8cb2a823d3960e0c88309228263c3b55c
>---------------------------------------------------------------
commit 378852c8cb2a823d3960e0c88309228263c3b55c
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Mon Apr 20 14:35:56 2020 +0200
Do not load math parameters form text fonts
>---------------------------------------------------------------
378852c8cb2a823d3960e0c88309228263c3b55c
src/luaotfload-features.lua | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/src/luaotfload-features.lua b/src/luaotfload-features.lua
index fe7f9fb..b0c40b5 100644
--- a/src/luaotfload-features.lua
+++ b/src/luaotfload-features.lua
@@ -582,6 +582,26 @@ end
luaotfload.apply_default_features = apply_default_features
+do
+ local function mathparaminitializer(tfmdata, value, features)
+ if not next(tfmdata.mathparameters) then return end
+ if value == 'auto' then
+ if features.script == 'math' then return end
+ end
+ tfmdata.mathparameters = {}
+ end
+ fonts.constructors.features.otf.register {
+ name = 'nomathparam',
+ description = 'Set Math parameters based on this font',
+ default = 'auto',
+ initializers = {
+ base = mathparaminitializer,
+ node = mathparaminitializer,
+ -- plug = mathparaminitializer,
+ },
+ }
+end
+
return function ()
if not fonts and fonts.handlers then
report ("log", 0, "features",
More information about the latex3-commits
mailing list.