Permalink
Browse files

allow multiple values for StylisticSet and Alternate features

CharacterVariant already allows multiple.

closes #126
  • Loading branch information...
1 parent f601565 commit 271e70d9cc888d86adca627860a4b5720fc187f2 @wspr committed Apr 25, 2012
Showing with 10 additions and 6 deletions.
  1. +10 −6 fontspec.dtx
View
@@ -1371,9 +1371,11 @@ This work consists of this file fontspec.dtx
% ENLARGED Minuscules. \\
% \end{Lexample}
%
-% (This is a synonym of the \feat{Variant} feature for \AAT\ fonts.)
-% See \vref{sec:newfeatures} for a way to assign names to stylistic sets,
-% which should be done on a per-font basis.
+% Multiple stylistic sets may be selected simultaneously by writing, e.g.,
+% |StylisticSet={1,2,3}|.
+%
+% The |StylisticSet| feature is a synonym of the \feat{Variant} feature for \AAT\ fonts.
+% See \vref{sec:newfeatures} for a way to assign names to stylistic sets, which should be done on a per-font basis.
%
% \subsection{Character Variants}
%
@@ -1427,7 +1429,7 @@ This work consists of this file fontspec.dtx
% \textsc{a} \& h
% \end{Xexample}
%
-% Note that the indexing starts from zero, which is compatible with \XeTeX\
+% Note that the indexing starts from zero, which is compatible with plain \XeTeX\
% but \emph{incompatible} with \texttt{luaotfload}, which starts from one.
%
% See \vref{sec:newfeatures} for a way to assign names to alternates,
@@ -5553,7 +5555,8 @@ This work consists of this file fontspec.dtx
Alternate .default:n = {0} ,
Alternate / unknown .code:n =
{
- \fontspec_make_feature:nnx {17}{#1} { \fontspec_salt:n {#1} }
+ \clist_map_inline:nn {#1}
+ { \fontspec_make_feature:nnx {17}{##1} { \fontspec_salt:n {##1} } }
}
}
% \end{macrocode}
@@ -5571,7 +5574,8 @@ This work consists of this file fontspec.dtx
Variant .default:n = {0} ,
Variant / unknown .code:n =
{
- \fontspec_make_feature:nnx {18}{#1} { +ss \two@digits {#1} }
+ \clist_map_inline:nn {#1}
+ { \fontspec_make_feature:nnx {18}{##1} { +ss \two@digits {##1} } }
}
}
\aliasfontfeature{Variant}{StylisticSet}

0 comments on commit 271e70d

Please sign in to comment.