[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Add subfont index field (79c5e50)
Marcel Fabian Krüger
tex at 2krueger.de
Fri Nov 1 12:36:36 CET 2019
Repository : https://github.com/latex3/luaotfload
On branch : dev
Link : https://github.com/latex3/luaotfload/commit/79c5e5049ff97ae67ef3ef37b54ff05d619a08e5
>---------------------------------------------------------------
commit 79c5e5049ff97ae67ef3ef37b54ff05d619a08e5
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Thu Jun 27 22:03:00 2019 +0200
Add subfont index field
>---------------------------------------------------------------
79c5e5049ff97ae67ef3ef37b54ff05d619a08e5
src/luaotfload-auxiliary.lua | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/luaotfload-auxiliary.lua b/src/luaotfload-auxiliary.lua
index 98cea35..5b8c898 100644
--- a/src/luaotfload-auxiliary.lua
+++ b/src/luaotfload-auxiliary.lua
@@ -108,6 +108,14 @@ luaotfload_callbacks [#luaotfload_callbacks + 1] = {
"patch_font", set_sscale_dimens, "set_sscale_dimens",
}
+-- Starting with LuaTeX 1.11.2, this is a more reliable way of selecting the
+-- right font than relying on psnames
+luaotfload_callbacks [#luaotfload_callbacks + 1] = {
+ "patch_font", function(fontdata)
+ fontdata.subfont = fontdata.specification.sub or 1
+ end, "set_font_index",
+}
+
local default_units = 1000
--- fontobj -> int
More information about the latex3-commits
mailing list