Merge pull request 'use npm package for self-hosting fonts' (#57) from lucrnz/pronouns.cc:fontsource into main
This commit is contained in:
commit
80a0257832
|
@ -10,8 +10,6 @@ git clone https://codeberg.org/u1f320/pronouns.cc.git pronouns
|
||||||
cd pronouns
|
cd pronouns
|
||||||
make all
|
make all
|
||||||
|
|
||||||
# if required fonts have not been downloaded yet
|
|
||||||
./download-fonts.sh
|
|
||||||
# if running for the first time
|
# if running for the first time
|
||||||
./pronouns database migrate
|
./pronouns database migrate
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
curl "https://free.bboxtype.com/embedfonts/fonts.php?family=FiraGO&weight=400" -o frontend/static/fonts/FiraGO-400.woff "https://free.bboxtype.com/embedfonts/fonts.php?family=FiraGO&weight=400i" -o frontend/static/fonts/FiraGO-400i.woff "https://free.bboxtype.com/embedfonts/fonts.php?family=FiraGO&weight=700" -o frontend/static/fonts/FiraGO-700.woff "https://free.bboxtype.com/embedfonts/fonts.php?family=FiraGO&weight=700i" -o frontend/static/fonts/FiraGO-700i.woff
|
|
|
@ -37,6 +37,7 @@
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@fontsource/firago": "^4.5.3",
|
||||||
"@popperjs/core": "^2.11.7",
|
"@popperjs/core": "^2.11.7",
|
||||||
"@sentry/node": "^7.46.0",
|
"@sentry/node": "^7.46.0",
|
||||||
"base64-arraybuffer": "^1.0.2",
|
"base64-arraybuffer": "^1.0.2",
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import "bootstrap/dist/css/bootstrap.min.css";
|
import "bootstrap/dist/css/bootstrap.min.css";
|
||||||
|
import "@fontsource/firago/400.css";
|
||||||
|
import "@fontsource/firago/400-italic.css";
|
||||||
|
import "@fontsource/firago/700.css";
|
||||||
|
import "@fontsource/firago/700-italic.css";
|
||||||
import "bootstrap-icons/font/bootstrap-icons.css";
|
import "bootstrap-icons/font/bootstrap-icons.css";
|
||||||
import "./main.css";
|
import "./main.css";
|
||||||
|
|
||||||
|
|
|
@ -1,37 +1,3 @@
|
||||||
@font-face {
|
|
||||||
font-family: "FiraGO";
|
|
||||||
font-display: swap;
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 400;
|
|
||||||
src: url("/fonts/FiraGO-400.woff") format("woff");
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: "FiraGO";
|
|
||||||
font-display: swap;
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 400;
|
|
||||||
src: url("/fonts/FiraGO-400i.woff") format("woff");
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: "FiraGO";
|
|
||||||
font-display: swap;
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 700;
|
|
||||||
src: url("/fonts/FiraGO-700.woff") format("woff");
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: "FiraGO";
|
|
||||||
font-display: swap;
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 700;
|
|
||||||
src: url("/fonts/FiraGO-700i.woff") format("woff");
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: "FiraGO", sans-serif;
|
font-family: "FiraGO", sans-serif;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue