Custom fonts can be installed via custom configuration profiles[0], which is what some font applications do[1]
I'm not sure if this is exposed via Safari or not, so it could still be a moot point.
[0] - https://developer.apple.com/library/content/featuredarticles...
[1] - https://itunes.apple.com/us/app/anyfont/id821560738