summaryrefslogtreecommitdiff
path: root/luaotfload.dtx
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-07-13 20:59:37 +0300
committerKhaled Hosny <khaledhosny@eglug.org>2010-07-13 20:59:37 +0300
commit87f225e7329c8bb110ff594737365cf5311adc28 (patch)
treed2a58b086f393dc236699f63dea4d0611fb79108 /luaotfload.dtx
parentb48f0e96702e32ff56d9995b2304f304f4625e20 (diff)
downloadluaotfload-87f225e7329c8bb110ff594737365cf5311adc28.tar.gz
Allow stylistic sets features in base mode
Diffstat (limited to 'luaotfload.dtx')
-rw-r--r--luaotfload.dtx19
1 files changed, 19 insertions, 0 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index 01bdeec..4fbb913 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -676,6 +676,25 @@ 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
%
% \begin{macrocode}