% Context typescript
% filename: type-unifraktur-maguntia.tex
% Author: W. Egger
% December 2018

% For details on available features consult the font documentation

\definefontfeature
	[maguntia]
	[default]
	[mode=auto,script=latn,pnum=no,onum=no,lnum=yes]

\definefontfeature [onum+pnum] [onum=yes,pnum=yes]
\definefontfeature [onum+tnum] [onum=yes,tnum=yes]
\definefontfeature [lnum+pnum] [lnum=yes,pnum=yes]
\definefontfeature [lnum+tnum] [lnum=yes,tnum=yes]

\starttypescript[calligraphy][maguntia]
	\definefontsynonym [maguntia][file:UnifrakturMaguntia][features=maguntia]
\stoptypescript

\starttypescript[calligraphy][maguntia][name]
	\definefontsynonym[Calligraphy][maguntia]	
\stoptypescript

\starttypescript[maguntia]
	\definetypeface[maguntia][cg][calligraphy][maguntia][default]
	\definetypeface[maguntia][ss][sans]       [latin-modern][default]
	\definetypeface[maguntia][rm][serif]      [latin-modern][default]
	\definetypeface[maguntia][mm][math]       [latin-modern][default]
	\definetypeface[maguntia][tt][mono]       [latin-modern][default]
\stoptypescript

\setupbodyfont[maguntia,cg,10pt]

% Test:

\starttext
\startlines
Unifraktur Maguntia
{\rm Mainzer Frakturschrift}
{\ss Carl Albert Fahrenwaldt}
{\tt Deutschland}
\stoplines
\stoptext

%Features present in UnifrakturMaguntia.ttf
% aalt	Access All Alternates
% calt	Contextual Alternates
% ccmp	Glyph Composition/Decomposition
% cv00	Character Variants 0: replace all long s with round s
% cv01	Character Variants 1
% cv02	Character Variants 2
% cv03	Character Variants 3
% cv04	Character Variants 4
% cv05	Character Variants 5
% cv06	Character Variants 6
% cv07	<unknown feature>
% cv08	<unknown feature>
% cv09	<unknown feature>
% cv10	<unknown feature>
% cv11	<unknown feature>
% cv12	<unknown feature>
% cv13	<unknown feature>
% cv14	<unknown feature>
% cv15	<unknown feature>
% cv16	<unknown feature>
% cv17	<unknown feature>
% cv18	<unknown feature>
% cv19	<unknown feature>
% cv20	Character Variant 20: replace swash s with no-swash s
% cv21	<unknown feature>
% cv22	<unknown feature>
% cv23	<unknown feature>
% cv24	<unknown feature>
% cv25	<unknown feature>
% cv26	<unknown feature>
% cv27	<unknown feature>
% cv28	<unknown feature>
% cv40	<unknown feature>
% cv81	<unknown feature>
% dlig	Discretionary Ligatures
% hlig	Historical Ligatures
% kern	Kerning
% liga	Standard Ligatures
% lnum	Lining Figures
% onum	Oldstyle Figures
% pnum	Proportional Figures
% ss01	Stylistic Set 1
% ss02	Stylistic Set 2
% ss03	Stylistic Set 3
% ss10	Stylistic Set 10
% ss11	Stylistic Set 11
% ss12	Stylistic Set 12
% ss13	Stylistic Set 13
% ss14	Stylistic Set 14
% ss15	Stylistic Set 15
% ss16	Stylistic Set 16
% ss17	Stylistic Set 17
% ss18	Stylistic Set 18
% ss19	Stylistic Set 19
% ss20	Stylistic Set 20
% subs	Subscript
% sups	Superscript
% tnum	Tabular Figures