%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% THIS IS THE NEUTRAFACE-2 TYPESCRIPT %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Define font instances
%%%%%%%%%%%%%%%%%%%%%%%
\definefontfeature	[mysans]	[protrusion=pure,expansion=quality,script=latn,liga=yes,onum=yes,pnum=yes,kern=yes,tlig=yes,trep=yes]
\definefontfeature	[mysmcp]	[mode=node,script=latn,language=dflt,liga=yes,lnum=yes,tnum=yes,kern=yes,tlig=yes,trep=yes,smcp=yes]
\definefontfeature	[mysup]		[mode=node,script=latn,onum=no,pnum=yes,sups=yes]

% Set up "normal" and Small Caps
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\starttypescript [sans] [neutraface2] 
  \definefontsynonym [Neutraface2Text-Book]		[name:neutraface2textbook]		[features=mysans] % Regular
  \definefontsynonym [Neutraface2Text-Bold]		[name:neutraface2textbold]		[features=mysans] % Bold
  \definefontsynonym [Neutraface2Text-BookItalic]	[name:neutraface2textbookitalic]	[features=mysans] % Italic
  \definefontsynonym [Neutraface2Text-Bold-Italic]	[name:neutraface2textbolditalic]	[features=mysans] % Bold-Italic
  \definefontsynonym [Neutraface2Text-SmallCaps]	[name:neutraface2textbook]		[features=mysmcp] % SmallCaps
  \definefontsynonym [Neutraface2Text-BoldSmallCaps]	[name:neutraface2textbold]		[features=mysmcp] % Bold-SmallCaps
\stoptypescript

\starttypescript [sans] [neutraface2]
  \definefontsynonym [Sans]		[Neutraface2Text-Book]		[features=mysans] % Regular
  \definefontsynonym [SansBold] 	[Neutraface2Text-Bold]		[features=mysans] % Bold
  \definefontsynonym [SansItalic]	[Neutraface2Text-BookItalic]	[features=mysans] % Italic
  \definefontsynonym [SansBoldItalic]	[Neutraface2Text-Bold-Italic]	[features=mysans] % Bold-Italic
  \definefontsynonym [SansCaps]		[Neutraface2Text-SmallCaps]	[features=mysmcp] % SmallCaps
  \definefontsynonym [SansBoldCaps]	[Neutraface2Text-BoldSmallCaps]	[features=mysmcp] % Bold-SmallCaps
 \stoptypescript

% Define Typefaces
\starttypescript [neutraface2]
  \definetypeface [neutraface2] [ss] [sans] [neutraface2] [default]
\stoptypescript
