CV
You should have Font Awesome 5 Pro license or fall back to Font Awesome Free
to build the app.
Clone the repo, then:
$ yarn # install
$ yarn run watch # start development server
$ yarn run build # build
$ yarn run pdf # generate PDFs
$ yarn run deploy # `build`, `pdf`, then deploy to the `gh-pages` branch
$ yarn run subset # subset fonts (see below)
After any changes of displayable text on the page
(even hidden with initial state),
fonts should be regenerated.
To regenerate fonts:
yarn run watch
.fonts.update()
in devtools console.fonts.json()
.main
field and paste to scripts/chars.json
.yarn run subset
.Make sure fonts are updated before each deploy.
Of course, there is intent to automate glyph stats gathering,
maybe while running tests.
If you changed list of supported languages,
you have to change PDF script (scripts/pdf.js
)
to generate PDFs for actual languages.
Also if you removed a language,
you should remove the corresponding .pdf
and .d.ts
file
in src/components/
.
Of course, there is also intent to automate this.
MIT, except select Font Awesome 5 Pro icons (src/kit/Icon.{ttf,woff,woff2}
).