From 737c2c7afd21c99eab446aea1bb9dd21185757d0 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Thu, 2 Feb 2023 14:05:55 +0100 Subject: 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 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 Binary files /dev/null and b/web/input/resources/fonts/bitter-v32-latin-700.woff 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 Binary files /dev/null and b/web/input/resources/fonts/bitter-v32-latin-700.woff2 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 Binary files /dev/null and b/web/input/resources/fonts/bitter-v32-latin-700italic.woff 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 Binary files /dev/null and b/web/input/resources/fonts/bitter-v32-latin-700italic.woff2 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 Binary files /dev/null and b/web/input/resources/fonts/bitter-v32-latin-italic.woff 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 Binary files /dev/null and b/web/input/resources/fonts/bitter-v32-latin-italic.woff2 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 Binary files /dev/null and b/web/input/resources/fonts/bitter-v32-latin-regular.woff 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 Binary files /dev/null and b/web/input/resources/fonts/bitter-v32-latin-regular.woff2 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 Binary files /dev/null and b/web/input/resources/fonts/source-code-pro-v22-latin-700.woff 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 Binary files /dev/null and b/web/input/resources/fonts/source-code-pro-v22-latin-700.woff2 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 Binary files /dev/null and b/web/input/resources/fonts/source-code-pro-v22-latin-700italic.woff 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 Binary files /dev/null and b/web/input/resources/fonts/source-code-pro-v22-latin-700italic.woff2 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 Binary files /dev/null and b/web/input/resources/fonts/source-code-pro-v22-latin-italic.woff 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 Binary files /dev/null and b/web/input/resources/fonts/source-code-pro-v22-latin-italic.woff2 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 Binary files /dev/null and b/web/input/resources/fonts/source-code-pro-v22-latin-regular.woff 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 Binary files /dev/null and b/web/input/resources/fonts/source-code-pro-v22-latin-regular.woff2 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 Binary files /dev/null and b/web/input/resources/fonts/source-sans-3-v8-latin-700.woff 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 Binary files /dev/null and b/web/input/resources/fonts/source-sans-3-v8-latin-700.woff2 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 Binary files /dev/null and b/web/input/resources/fonts/source-sans-3-v8-latin-700italic.woff 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 Binary files /dev/null and b/web/input/resources/fonts/source-sans-3-v8-latin-700italic.woff2 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 Binary files /dev/null and b/web/input/resources/fonts/source-sans-3-v8-latin-italic.woff 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 Binary files /dev/null and b/web/input/resources/fonts/source-sans-3-v8-latin-italic.woff2 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 Binary files /dev/null and b/web/input/resources/fonts/source-sans-3-v8-latin-regular.woff 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 Binary files /dev/null and b/web/input/resources/fonts/source-sans-3-v8-latin-regular.woff2 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 @@ * - See . * - Additionally, we use the CSS color "dimgray" (#696969) for stuff like the * breadcrumb navigation and the footer. + * + * Font faces: + * + * - CSS generated by . */ -/* - * @import url("https://fonts.googleapis.com/css?family=Bitter"); - * @import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro"); - * @import url("https://fonts.googleapis.com/css?family=Source+Code+Pro"); - */ +/* bitter-regular - latin */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Bitter'; + font-style: normal; + font-weight: 400; + src: url('fonts/bitter-v32-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ + url('fonts/bitter-v32-latin-regular.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} + +/* bitter-italic - latin */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Bitter'; + font-style: italic; + font-weight: 400; + src: url('fonts/bitter-v32-latin-italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ + url('fonts/bitter-v32-latin-italic.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} + +/* bitter-700 - latin */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Bitter'; + font-style: normal; + font-weight: 700; + src: url('fonts/bitter-v32-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ + url('fonts/bitter-v32-latin-700.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} + +/* bitter-700italic - latin */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Bitter'; + font-style: italic; + font-weight: 700; + src: url('fonts/bitter-v32-latin-700italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ + url('fonts/bitter-v32-latin-700italic.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} + +/* source-sans-3-regular - latin */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Source Sans 3'; + font-style: normal; + font-weight: 400; + src: url('fonts/source-sans-3-v8-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ + url('fonts/source-sans-3-v8-latin-regular.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} + +/* source-sans-3-italic - latin */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Source Sans 3'; + font-style: italic; + font-weight: 400; + src: url('fonts/source-sans-3-v8-latin-italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ + url('fonts/source-sans-3-v8-latin-italic.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} + +/* source-sans-3-700 - latin */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Source Sans 3'; + font-style: normal; + font-weight: 700; + src: url('fonts/source-sans-3-v8-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ + url('fonts/source-sans-3-v8-latin-700.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} + +/* source-sans-3-700italic - latin */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Source Sans 3'; + font-style: italic; + font-weight: 700; + src: url('fonts/source-sans-3-v8-latin-700italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ + url('fonts/source-sans-3-v8-latin-700italic.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} + +/* source-code-pro-regular - latin */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Source Code Pro'; + font-style: normal; + font-weight: 400; + src: url('fonts/source-code-pro-v22-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ + url('fonts/source-code-pro-v22-latin-regular.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} + +/* source-code-pro-italic - latin */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Source Code Pro'; + font-style: italic; + font-weight: 400; + src: url('fonts/source-code-pro-v22-latin-italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ + url('fonts/source-code-pro-v22-latin-italic.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} + +/* source-code-pro-700 - latin */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Source Code Pro'; + font-style: normal; + font-weight: 700; + src: url('fonts/source-code-pro-v22-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ + url('fonts/source-code-pro-v22-latin-700.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} + +/* source-code-pro-700italic - latin */ +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Source Code Pro'; + font-style: italic; + font-weight: 700; + src: url('fonts/source-code-pro-v22-latin-700italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ + url('fonts/source-code-pro-v22-latin-700italic.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} body { - font-family: "Source Sans Pro", sans-serif; + font-family: "Source Sans 3", sans-serif; text-rendering: optimizeLegibility; } -- cgit v0.10-9-g596f