| 1 |
To generate a new letter icon: |
| 2 |
|
| 3 |
- Open `res/icons.sfd` in FontForge. |
| 4 |
- Open "IBM Plex Sans Medium" to the side. Return to the icons font. |
| 5 |
- Copy the (blank-looking) glyph at `E0F0` to the new codepoint. It contains two baselines. |
| 6 |
- Open the new codepoint. |
| 7 |
- Select the upper baseline. |
| 8 |
- Use `Element | Insert Text Outlines...` to place text: |
| 9 |
- Turn off "Scale so text width matches path length". |
| 10 |
- Align "centered". |
| 11 |
- Type first line of text into the box. |
| 12 |
- Click the "Insert" button (might need window resize to be visible). |
| 13 |
- Delete the upper baseline. |
| 14 |
- If there's a second line of letters, repeat for the lower baseline. |
| 15 |
- Delete the lower baseline. |
| 16 |
- Select all. |
| 17 |
- Use `Element | Transformations | Transform...` to scale and place the text: |
| 18 |
- For "Origin", select "Glyph Origin". |
| 19 |
- In the drop-down beneath that, select "Scale Uniformly", and beneath that, "Move". Fill in values as below: |
| 20 |
- One letter: 12000%, X 896, Y 15.5. |
| 21 |
- Two letters: 10000%, X 896, Y 99.2. |
| 22 |
- Three letters: 8000%, X 896, Y 183. |
| 23 |
- Two lines: 8000%, X 896, Y 618.5. |
| 24 |
- If resulting glyph is too wide, repeat all steps starting with "IBM Plex Sans Condensed Medium" instead. |
| 25 |
- Remember to close the other IBM Plex font or select the proper one in the "Insert Text Outlines..." dialog. |
| 26 |
- Hit `OK`. The letter icon should be properly sized and centered. |
| 27 |
- Save. |
| 28 |
- Use `File | Generate Fonts...` to export `res/icons.ttf`. |
| 29 |
- "Validate before saving" should be turned off. |
| 30 |
- An error will pop up informing that the TrueType em-size isn't a power of two. Ignore this. |
| 31 |
- Run `res/make-iconfont.sh`. |
| 32 |
|
| 33 |
Notes: |
| 34 |
|
| 35 |
- Codepoints `E0F0` to `E0F4` are for reference only. |
| 36 |
- The back layer of each of `E0F1` to `E0F4` has lines that show the expected tops and bottoms of text. Round letters and numerals will reach slightly above or below. |
| 37 |
- The WSG icon (`E11F`) has been slightly kerned to fit. |