Fedora provides lots of fonts, and I have lots of them installed. I would like the browser to use them instead of going out on the web to find fonts for pages it is rendering. A nice to have feature would be a mapping of common fonts to substitute fonts if they aren't available. For instance, if a web page calls for Times-Roman, and I don't have that installed, the server substitutes a reasonable alternative. This would be mapped to things like fonts.googleapis.com so that I would still get a reasonable font when the browser wants to call there, but gets the local font server instead.
Is there such a thing already in Fedora? If there isn't, would it be easy to create such a thing with existing tools?
As an alternative, could I compile the local fonts into firefox so that they are directly available?