Bitter – the font only works in the TT4 style “Permutation”.

Because that’s where it is!

Method:

  1. Creata a style in /styles/
  2. e.g. myStyle.json
  3. Download the font from Google Fonts: Bitter
  4. Convert to woff2 with a converter like this.
  5. Place the files in ./assets/fonts/Bitter
  6. Add the file manually to myStyle.json
{
					"fontFace": [
						{
							"fontFamily": "Bitter",
							"fontStyle": "normal",
							"fontWeight": "400 700",
							"src": [
								"file:./assets/fonts/Bitter/Bitter-VariableFont_wght.woff2"
							]
						},
						{
							"fontFamily": "Bitter Italic",
							"fontStyle": "italic",
							"fontWeight": "400 700",
							"src": [
								"file:./assets/fonts/Bitter/Bitter-Italic-VariableFont_wght.woff2"
							]
						}
					],
					"fontFamily": "\"Bitter\", sans-serif",
					"name": "Bitter",
					"slug": "bitter"
				}

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *