1 - Install imagemagick
- Mac:
brew install imagemagick - Ubuntu Linux: Follow this guide
- If you are on windows, these instructions should work on WSL (windows subsystem for linux)
1- Save the following script as split-icons.sh
1 - Install imagemagick
brew install imagemagick1- Save the following script as split-icons.sh
| // create-react-app typescript WSL | |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "chrome", | |
| "request": "launch", | |
| "name": "Launch Chrome", | |
| "url": "http://localhost:3000", | |
| "webRoot": "${workspaceRoot}/src", |
| function loadFont(container) { | |
| const familiarsFont = new FontFace( | |
| "Junction Regular", | |
| "url(https://cors-anywhere.herokuapp.com/https://cdn.discordapp.com/attachments/617372365520896027/892619268854792202/FamIo8.ttf)" | |
| ); | |
| familiarsFont | |
| .load() | |
| .then(loaded_face => document.fonts.add(loaded_face)) | |
| .catch(() => | |
| console.log( |