From 87f225e7329c8bb110ff594737365cf5311adc28 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Tue, 13 Jul 2010 20:59:37 +0300 Subject: Allow stylistic sets features in base mode --- luaotfload.dtx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/luaotfload.dtx b/luaotfload.dtx index 01bdeec..4fbb913 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -674,6 +674,25 @@ end fonts.mode = "node" +% \end{macrocode} +% +% The following features are useful in math (e.g. in XITS Math font), +% but \textsf{luaotfload} does not recognize them in |base| mode. +% +% \begin{macrocode} + +local register_base_sub = fonts.otf.features.register_base_substitution +local gsubs = { + "ss01", "ss02", "ss03", "ss04", "ss05", + "ss06", "ss07", "ss08", "ss09", "ss10", + "ss11", "ss12", "ss13", "ss14", "ss15", + "ss16", "ss17", "ss18", "ss19", "ss20", +} + +for _,v in next, gsubs do + register_base_sub(v) +end + % \end{macrocode} % % Finally two functions -- cgit v1.2.3