Skip to content

Commit 61944a2

Browse files
Introduce Inter font
Also adds README. Bump gem to v0.0.10
1 parent 6cf85f2 commit 61944a2

File tree

3 files changed

+270
-186
lines changed

3 files changed

+270
-186
lines changed

Diff for: README.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Discourse Fonts
2+
3+
This gem is used to distribute all fonts used for the [Discourse forum software](https://discourse.org/). The main repository for Discourse is [https://github.com/discourse/discourse](https://github.com/discourse/discourse).
4+
5+
This gem can be found on RubyGems at [https://rubygems.org/gems/discourse-fonts](https://rubygems.org/gems/discourse-fonts).
6+
7+
### Adding fonts
8+
9+
Most fonts in this gem are from Google Fonts. When adding a new font, this is the process:
10+
11+
1. Download the font from Google Fonts
12+
1. Make sure the license is added to a text file in vendor/assets/fonts. Sometimes the license will already be present, e.g. OFL is a common license.
13+
1. Copy the downlowded .ttf files to vendor/assets/fonts
14+
1. Add the font name, stack, and variants for e.g. different weights to lib/discourse_fonts.rb following the existing examples
15+
1. Bump the VERSION in this file
16+
17+
To test this gem out locally, you can change the discourse/discourse gemfile to point to your local copy of this gem using the `path` option:
18+
19+
```
20+
gem 'discourse-fonts', path: '/path/to/discourse-fonts'
21+
```
22+
23+
Discourse symlinks the fonts in vendor/assets/fonts to the public/fonts directory, and it should update this symlink when you install the gem from the local path.

0 commit comments

Comments
 (0)