diff options
| author | Holger Weiss <holger@zedat.fu-berlin.de> | 2023-02-02 14:05:55 +0100 |
|---|---|---|
| committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2023-02-02 14:05:55 +0100 |
| commit | 737c2c7afd21c99eab446aea1bb9dd21185757d0 (patch) | |
| tree | e4c9fd9ee27b83bffa8eb9a84707d07678c83849 | |
| parent | 5295cf7f23d98feef25f316a7f085281b5706efb (diff) | |
| download | site-737c2c7afd21c99eab446aea1bb9dd21185757d0.tar.gz | |
Self-host the web fonts
While at it, switch from Source Sans Pro to Source Sans 3, see:
https://blog.adobe.com/en/publish/2020/11/30/whats-new-in-source-sans-3
25 files changed, 124 insertions, 6 deletions
diff --git a/web/input/resources/fonts/bitter-v32-latin-700.woff b/web/input/resources/fonts/bitter-v32-latin-700.woff new file mode 100644 index 0000000..c41c1af --- /dev/null +++ b/web/input/resources/fonts/bitter-v32-latin-700.woff | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/bitter-v32-latin-700.woff2 b/web/input/resources/fonts/bitter-v32-latin-700.woff2 new file mode 100644 index 0000000..08115ec --- /dev/null +++ b/web/input/resources/fonts/bitter-v32-latin-700.woff2 | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/bitter-v32-latin-700italic.woff b/web/input/resources/fonts/bitter-v32-latin-700italic.woff new file mode 100644 index 0000000..2f7509d --- /dev/null +++ b/web/input/resources/fonts/bitter-v32-latin-700italic.woff | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/bitter-v32-latin-700italic.woff2 b/web/input/resources/fonts/bitter-v32-latin-700italic.woff2 new file mode 100644 index 0000000..2ae3d64 --- /dev/null +++ b/web/input/resources/fonts/bitter-v32-latin-700italic.woff2 | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/bitter-v32-latin-italic.woff b/web/input/resources/fonts/bitter-v32-latin-italic.woff new file mode 100644 index 0000000..4ed6fef --- /dev/null +++ b/web/input/resources/fonts/bitter-v32-latin-italic.woff | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/bitter-v32-latin-italic.woff2 b/web/input/resources/fonts/bitter-v32-latin-italic.woff2 new file mode 100644 index 0000000..9f8a7a0 --- /dev/null +++ b/web/input/resources/fonts/bitter-v32-latin-italic.woff2 | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/bitter-v32-latin-regular.woff b/web/input/resources/fonts/bitter-v32-latin-regular.woff new file mode 100644 index 0000000..640650a --- /dev/null +++ b/web/input/resources/fonts/bitter-v32-latin-regular.woff | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/bitter-v32-latin-regular.woff2 b/web/input/resources/fonts/bitter-v32-latin-regular.woff2 new file mode 100644 index 0000000..b9dd36d --- /dev/null +++ b/web/input/resources/fonts/bitter-v32-latin-regular.woff2 | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/source-code-pro-v22-latin-700.woff b/web/input/resources/fonts/source-code-pro-v22-latin-700.woff new file mode 100644 index 0000000..201831d --- /dev/null +++ b/web/input/resources/fonts/source-code-pro-v22-latin-700.woff | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/source-code-pro-v22-latin-700.woff2 b/web/input/resources/fonts/source-code-pro-v22-latin-700.woff2 new file mode 100644 index 0000000..40ba215 --- /dev/null +++ b/web/input/resources/fonts/source-code-pro-v22-latin-700.woff2 | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/source-code-pro-v22-latin-700italic.woff b/web/input/resources/fonts/source-code-pro-v22-latin-700italic.woff new file mode 100644 index 0000000..d525961 --- /dev/null +++ b/web/input/resources/fonts/source-code-pro-v22-latin-700italic.woff | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/source-code-pro-v22-latin-700italic.woff2 b/web/input/resources/fonts/source-code-pro-v22-latin-700italic.woff2 new file mode 100644 index 0000000..4ab0c6b --- /dev/null +++ b/web/input/resources/fonts/source-code-pro-v22-latin-700italic.woff2 | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/source-code-pro-v22-latin-italic.woff b/web/input/resources/fonts/source-code-pro-v22-latin-italic.woff new file mode 100644 index 0000000..66af57d --- /dev/null +++ b/web/input/resources/fonts/source-code-pro-v22-latin-italic.woff | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/source-code-pro-v22-latin-italic.woff2 b/web/input/resources/fonts/source-code-pro-v22-latin-italic.woff2 new file mode 100644 index 0000000..1f4bc2a --- /dev/null +++ b/web/input/resources/fonts/source-code-pro-v22-latin-italic.woff2 | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/source-code-pro-v22-latin-regular.woff b/web/input/resources/fonts/source-code-pro-v22-latin-regular.woff new file mode 100644 index 0000000..597d27a --- /dev/null +++ b/web/input/resources/fonts/source-code-pro-v22-latin-regular.woff | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/source-code-pro-v22-latin-regular.woff2 b/web/input/resources/fonts/source-code-pro-v22-latin-regular.woff2 new file mode 100644 index 0000000..978a2a3 --- /dev/null +++ b/web/input/resources/fonts/source-code-pro-v22-latin-regular.woff2 | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/source-sans-3-v8-latin-700.woff b/web/input/resources/fonts/source-sans-3-v8-latin-700.woff new file mode 100644 index 0000000..2591044 --- /dev/null +++ b/web/input/resources/fonts/source-sans-3-v8-latin-700.woff | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/source-sans-3-v8-latin-700.woff2 b/web/input/resources/fonts/source-sans-3-v8-latin-700.woff2 new file mode 100644 index 0000000..d1a9b22 --- /dev/null +++ b/web/input/resources/fonts/source-sans-3-v8-latin-700.woff2 | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/source-sans-3-v8-latin-700italic.woff b/web/input/resources/fonts/source-sans-3-v8-latin-700italic.woff new file mode 100644 index 0000000..d09f768 --- /dev/null +++ b/web/input/resources/fonts/source-sans-3-v8-latin-700italic.woff | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/source-sans-3-v8-latin-700italic.woff2 b/web/input/resources/fonts/source-sans-3-v8-latin-700italic.woff2 new file mode 100644 index 0000000..80d91c8 --- /dev/null +++ b/web/input/resources/fonts/source-sans-3-v8-latin-700italic.woff2 | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/source-sans-3-v8-latin-italic.woff b/web/input/resources/fonts/source-sans-3-v8-latin-italic.woff new file mode 100644 index 0000000..987ca54 --- /dev/null +++ b/web/input/resources/fonts/source-sans-3-v8-latin-italic.woff | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/source-sans-3-v8-latin-italic.woff2 b/web/input/resources/fonts/source-sans-3-v8-latin-italic.woff2 new file mode 100644 index 0000000..41ae308 --- /dev/null +++ b/web/input/resources/fonts/source-sans-3-v8-latin-italic.woff2 | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/source-sans-3-v8-latin-regular.woff b/web/input/resources/fonts/source-sans-3-v8-latin-regular.woff new file mode 100644 index 0000000..6f1345d --- /dev/null +++ b/web/input/resources/fonts/source-sans-3-v8-latin-regular.woff | |||
| Binary files differ | |||
diff --git a/web/input/resources/fonts/source-sans-3-v8-latin-regular.woff2 b/web/input/resources/fonts/source-sans-3-v8-latin-regular.woff2 new file mode 100644 index 0000000..ba92190 --- /dev/null +++ b/web/input/resources/fonts/source-sans-3-v8-latin-regular.woff2 | |||
| Binary files differ | |||
diff --git a/web/input/resources/plugins.css b/web/input/resources/plugins.css index d29e101..6971947 100644 --- a/web/input/resources/plugins.css +++ b/web/input/resources/plugins.css | |||
| @@ -6,16 +6,134 @@ | |||
| 6 | * - See <http://colorschemedesigner.com/#3y21T--rOw0w0>. | 6 | * - See <http://colorschemedesigner.com/#3y21T--rOw0w0>. |
| 7 | * - Additionally, we use the CSS color "dimgray" (#696969) for stuff like the | 7 | * - Additionally, we use the CSS color "dimgray" (#696969) for stuff like the |
| 8 | * breadcrumb navigation and the footer. | 8 | * breadcrumb navigation and the footer. |
| 9 | * | ||
| 10 | * Font faces: | ||
| 11 | * | ||
| 12 | * - CSS generated by <https://gwfh.mranftl.com/fonts>. | ||
| 9 | */ | 13 | */ |
| 10 | 14 | ||
| 11 | /* | 15 | /* bitter-regular - latin */ |
| 12 | * @import url("https://fonts.googleapis.com/css?family=Bitter"); | 16 | @font-face { |
| 13 | * @import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro"); | 17 | font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ |
| 14 | * @import url("https://fonts.googleapis.com/css?family=Source+Code+Pro"); | 18 | font-family: 'Bitter'; |
| 15 | */ | 19 | font-style: normal; |
| 20 | font-weight: 400; | ||
| 21 | src: url('fonts/bitter-v32-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ | ||
| 22 | url('fonts/bitter-v32-latin-regular.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | ||
| 23 | } | ||
| 24 | |||
| 25 | /* bitter-italic - latin */ | ||
| 26 | @font-face { | ||
| 27 | font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ | ||
| 28 | font-family: 'Bitter'; | ||
| 29 | font-style: italic; | ||
| 30 | font-weight: 400; | ||
| 31 | src: url('fonts/bitter-v32-latin-italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ | ||
| 32 | url('fonts/bitter-v32-latin-italic.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | ||
| 33 | } | ||
| 34 | |||
| 35 | /* bitter-700 - latin */ | ||
| 36 | @font-face { | ||
| 37 | font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ | ||
| 38 | font-family: 'Bitter'; | ||
| 39 | font-style: normal; | ||
| 40 | font-weight: 700; | ||
| 41 | src: url('fonts/bitter-v32-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ | ||
| 42 | url('fonts/bitter-v32-latin-700.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | ||
| 43 | } | ||
| 44 | |||
| 45 | /* bitter-700italic - latin */ | ||
| 46 | @font-face { | ||
| 47 | font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ | ||
| 48 | font-family: 'Bitter'; | ||
| 49 | font-style: italic; | ||
| 50 | font-weight: 700; | ||
| 51 | src: url('fonts/bitter-v32-latin-700italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ | ||
| 52 | url('fonts/bitter-v32-latin-700italic.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | ||
| 53 | } | ||
| 54 | |||
| 55 | /* source-sans-3-regular - latin */ | ||
| 56 | @font-face { | ||
| 57 | font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ | ||
| 58 | font-family: 'Source Sans 3'; | ||
| 59 | font-style: normal; | ||
| 60 | font-weight: 400; | ||
| 61 | src: url('fonts/source-sans-3-v8-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ | ||
| 62 | url('fonts/source-sans-3-v8-latin-regular.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | ||
| 63 | } | ||
| 64 | |||
| 65 | /* source-sans-3-italic - latin */ | ||
| 66 | @font-face { | ||
| 67 | font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ | ||
| 68 | font-family: 'Source Sans 3'; | ||
| 69 | font-style: italic; | ||
| 70 | font-weight: 400; | ||
| 71 | src: url('fonts/source-sans-3-v8-latin-italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ | ||
| 72 | url('fonts/source-sans-3-v8-latin-italic.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | ||
| 73 | } | ||
| 74 | |||
| 75 | /* source-sans-3-700 - latin */ | ||
| 76 | @font-face { | ||
| 77 | font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ | ||
| 78 | font-family: 'Source Sans 3'; | ||
| 79 | font-style: normal; | ||
| 80 | font-weight: 700; | ||
| 81 | src: url('fonts/source-sans-3-v8-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ | ||
| 82 | url('fonts/source-sans-3-v8-latin-700.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | ||
| 83 | } | ||
| 84 | |||
| 85 | /* source-sans-3-700italic - latin */ | ||
| 86 | @font-face { | ||
| 87 | font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ | ||
| 88 | font-family: 'Source Sans 3'; | ||
| 89 | font-style: italic; | ||
| 90 | font-weight: 700; | ||
| 91 | src: url('fonts/source-sans-3-v8-latin-700italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ | ||
| 92 | url('fonts/source-sans-3-v8-latin-700italic.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | ||
| 93 | } | ||
| 94 | |||
| 95 | /* source-code-pro-regular - latin */ | ||
| 96 | @font-face { | ||
| 97 | font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ | ||
| 98 | font-family: 'Source Code Pro'; | ||
| 99 | font-style: normal; | ||
| 100 | font-weight: 400; | ||
| 101 | src: url('fonts/source-code-pro-v22-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ | ||
| 102 | url('fonts/source-code-pro-v22-latin-regular.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | ||
| 103 | } | ||
| 104 | |||
| 105 | /* source-code-pro-italic - latin */ | ||
| 106 | @font-face { | ||
| 107 | font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ | ||
| 108 | font-family: 'Source Code Pro'; | ||
| 109 | font-style: italic; | ||
| 110 | font-weight: 400; | ||
| 111 | src: url('fonts/source-code-pro-v22-latin-italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ | ||
| 112 | url('fonts/source-code-pro-v22-latin-italic.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | ||
| 113 | } | ||
| 114 | |||
| 115 | /* source-code-pro-700 - latin */ | ||
| 116 | @font-face { | ||
| 117 | font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ | ||
| 118 | font-family: 'Source Code Pro'; | ||
| 119 | font-style: normal; | ||
| 120 | font-weight: 700; | ||
| 121 | src: url('fonts/source-code-pro-v22-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ | ||
| 122 | url('fonts/source-code-pro-v22-latin-700.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | ||
| 123 | } | ||
| 124 | |||
| 125 | /* source-code-pro-700italic - latin */ | ||
| 126 | @font-face { | ||
| 127 | font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ | ||
| 128 | font-family: 'Source Code Pro'; | ||
| 129 | font-style: italic; | ||
| 130 | font-weight: 700; | ||
| 131 | src: url('fonts/source-code-pro-v22-latin-700italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ | ||
| 132 | url('fonts/source-code-pro-v22-latin-700italic.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ | ||
| 133 | } | ||
| 16 | 134 | ||
| 17 | body { | 135 | body { |
| 18 | font-family: "Source Sans Pro", sans-serif; | 136 | font-family: "Source Sans 3", sans-serif; |
| 19 | text-rendering: optimizeLegibility; | 137 | text-rendering: optimizeLegibility; |
| 20 | } | 138 | } |
| 21 | 139 | ||
