You should probably creates your own package in order to bundle the font with it. That way you make sure that you’ll have a local resource path using the
atom:// scheme and there will no risk that an atom update removes it.
Creating Atom packages is really simple, and I believe this kind of thing can be done in less that 5mn:
- Search for
Package Generator: Generate Package
- Press enter and wait for a new Atom window to open
- Remove all unrequired files (keymaps, menus, specs) to only keep the stylesheets directory, the main coffeescript file (
package.json, and remove the activation event from the package.json file.
- Remove everything from the main coffeescript file and only leave:
6. Put your font somewhere in the package directory (in a `resources` directory for instance)
7. Link to your font in the package's stylesheet using the `atom://your-package-name/` scheme, (`atom://your-package-name/resources/your-font.woff` for instance)
8. That's it, your user stylesheet can now access your font :)
The proper documentation for package creation can be found [here](https://atom.io/docs/latest/creating-a-package)