At Wikisource, we have a template "blackletter" which uses the ULS to select fonts:
https://en.wikisource.org/wiki/Template:Blackletter
Producing output something like this:
<span style="font-family:UnifrakturMaguntia, UnifrakturCook,Unifraktur, serif;font-size:113%;font-feature-settings:'cv01', 'cv02', 'cv03', 'cv04', 'cv05', 'cv06', 'cv07', 'cv08', 'cv09', 'cv10'; -webkit-font-feature-settings:'cv01', 'cv02', 'cv03', 'cv04', 'cv05', 'cv06', 'cv07', 'cv08', 'cv09', 'cv10'; -ms-font-feature-settings:'cv01', 'cv02', 'cv03', 'cv04', 'cv05', 'cv06', 'cv07', 'cv08', 'cv09', 'cv10'" lang="en-Latf">Foobar</span>
Is there anyway to get this font picked up by the export process?