%
% Typescript for serif family sil gentium
% LuaTeX only!
%

\definefontfeature[fieefeatures]
[%mode=node,liga=yes,kern=yes,tlig=yes,
  %ccmp=yes,language=dflt,
  protrusion=quality,
  expansion=quality]


\starttypescript[serif][gentium]
	% \definefontsynonym[Gentium]      	[name:Gentium]
	% \definefontsynonym[GentiumAlt]      [name:GentiumAlt]
	% \definefontsynonym[GentiumAltItalic][name:GentiumAlt Italic]
	% \definefontsynonym[GentiumItalic]	[name:Gentium Italic]
	% \definefontsynonym[GentiumBold]		[name:Gentium Basic Bold]
	% \definefontsynonym[GentiumBoldItalic][name:Gentium Basic Bold Italic]
    %
	% \definefontsynonym[GentiumBook]      	[name:Gentium Basic Book]
	% \definefontsynonym[GentiumBookItalic]	[name:Gentium Basic Book Italic]
	% \definefontsynonym[GentiumBookBold]		[name:Gentium Basic Book Bold]
	% \definefontsynonym[GentiumBookBoldItalic][name:Gentium Basic Book Bold Italic]
    \definefontsynonym[Gentium][file:fonts/GenBasR.ttf]
    \definefontsynonym[GentiumItalic][file:fonts/GenBasI.ttf]
    \definefontsynonym[GentiumBold][file:fonts/GenBasB.ttf]
    \definefontsynonym[GentiumBoldItalic][file:fonts/GenBasBI.ttf]
\stoptypescript

\starttypescript[sans][delicious]
	\definefontsynonym[Delicious]	[file:fonts/Delicious-Roman.otf]
	\definefontsynonym[Delicious-Italic]	[file:fonts/Delicious-Italic.otf]
	\definefontsynonym[Delicious-Bold]	[file:fonts/Delicious-Bold.otf]
	\definefontsynonym[Delicious-BoldItalic]	[file:fonts/Delicious-BoldItalic.otf]
	\definefontsynonym[Delicious-SmallCaps]	[file:fonts/Delicious-SmallCaps.otf]
	\definefontsynonym[Delicious-Heavy]	[file:fonts/Delicious-Heavy.otf]
	% \definefontsynonym[Delicious]	[name:deliciousroman]
	% \definefontsynonym[Delicious-Italic]	[name:deliciousitalic]
	% \definefontsynonym[Delicious-Bold]	[name:deliciousbold]
	% \definefontsynonym[Delicious-BoldItalic]	[name:deliciousbolditalic]
	% \definefontsynonym[Delicious-SmallCaps]	[name:delicioussmallcaps]
	% \definefontsynonym[Delicious-Heavy]	[name:deliciousheavy]
\stoptypescript

\starttypescript[serif][gentium][name]
	%\setups[font:fallback:serif]
	\definefontsynonym[Serif]           [Gentium]
	\definefontsynonym[SerifBold]       [GentiumBold]
	\definefontsynonym[SerifItalic]     [GentiumItalic]
	\definefontsynonym[SerifBoldItalic] [GentiumBoldItalic]
	\definefontsynonym[SerifSlanted]    [GentiumItalic]
	\definefontsynonym[SerifBoldSlanted][GentiumBoldItalic]
	%\definefontsynonym[SerifCaps]       [GentiumAlt]
	%\definefontsynonym[SerifBoldCaps]	[SerifItalic]
	%\definefontsynonym[SerifOldstyle]	[SerifItalic]

	% markup of \Var[alt] results in a (subtle) font switch:
	%\definefontvariant [Serif] [alt] [Alt]
	% unfortunately you need to define eight synonyms to handle the fallback cases:
	\definefontsynonym [SerifRegular]	[Serif]
	\definefontsynonym [SerifRegularAlt]	[SerifAlt]
	\definefontsynonym[SerifAlt]        [GentiumAlt]
	\definefontsynonym[SerifAltItalic]  [GentiumAltItalic]
	%\definefontsynonym [SerifBoldAlt]	[SerifAlt]
	%\definefontsynonym [SerifCapsAlt]	[SerifAlt]
	\definefontsynonym [SerifItalicAlt]	[SerifItalicAlt]
	\definefontsynonym [SerifSlantedAlt]	[SerifItalicAlt]
	\definefontsynonym [SerifBoldItalicAlt]	[SerifItalicAlt]
	\definefontsynonym [SerifBoldSlantedAlt]	[SerifItalicAlt]

	% \Var[book] is slightly bolder:
	%\definefontvariant [Serif] [book] [Book]

	\definefontsynonym[SerifBook]           [GentiumBook]
	\definefontsynonym[SerifBoldBook]       [GentiumBook]
	\definefontsynonym[SerifItalicBook]     [GentiumBookItalic]
	\definefontsynonym[SerifBoldItalicBook] [GentiumBookBoldItalic]
	\definefontsynonym[SerifSlantedBook]    [GentiumBookItalic]
	\definefontsynonym[SerifBoldSlantedBook][GentiumBookBoldItalic]
	%\definefontsynonym[SerifCapsBook]       [GentiumBook]
	%\definefontsynonym[SerifBoldCapsBook]	[SerifItalicBook]
	%\definefontsynonym[SerifOldstyleBook]	[SerifItalicBook]

	\definefontsynonym [SerifRegularBook]	[SerifBook]
	\definefontsynonym [SerifBoldBook]	[SerifBook]
	%\definefontsynonym [SerifCapsBook]	[SerifBook]
	\definefontsynonym [SerifItalicBook]	[SerifItalicBook]
	\definefontsynonym [SerifSlantedBook]	[SerifItalicBook]
	\definefontsynonym [SerifBoldItalicBook]	[SerifBoldItalicBook]
	\definefontsynonym [SerifBoldSlantedBook]	[SerifBoldItalicBook]

\stoptypescript

\starttypescript[sans][delicious][name]
	%\setups[font:fallback:sans]
	\definefontsynonym[Sans][Delicious][features=fieefeatures]
	\definefontsynonym[SansItalic][Delicious-Italic][features=fieefeatures]
	\definefontsynonym[SansSlanted][Delicious-Italic][features=fieefeatures]
	\definefontsynonym[SansBold][Delicious-Bold][features=fieefeatures]
	\definefontsynonym[SansBoldItalic][Delicious-BoldItalic][features=fieefeatures]
	\definefontsynonym[SansBoldSlanted][Delicious-BoldItalic][features=fieefeatures]
	\definefontsynonym[SansCaps][Delicious-SmallCaps][features=fieefeatures]
\stoptypescript

\starttypescript	[fiee-gendel]
	\definetypeface	[fiee]	[rm]	[serif]	[gentium]	[default]
	\definetypeface	[fiee]	[ss]	[sans]	[delicious]	[default][rscale=0.9]
	\definetypeface	[fiee]	[tt]	[mono]	[default]	[default]
	\definetypeface	[fiee]	[mm]	[math]	[palatino]	[default]
\stoptypescript
