[gtk/docs-gtk-org] static: Add fonts to match gi-docgen's basic template
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/docs-gtk-org] static: Add fonts to match gi-docgen's basic template
- Date: Sun, 3 Oct 2021 10:38:25 +0000 (UTC)
commit ede3a6f6753cbe3a03a62ce0b5710a5094dcb3c5
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sun Oct 3 10:47:45 2021 +0100
static: Add fonts to match gi-docgen's basic template
static/fonts.css | 119 ++++++++++++++++----------
static/fonts/RedHatDisplay-Black.woff | Bin 0 -> 36396 bytes
static/fonts/RedHatDisplay-Black.woff2 | Bin 0 -> 28457 bytes
static/fonts/RedHatDisplay-BlackItalic.woff | Bin 0 -> 37464 bytes
static/fonts/RedHatDisplay-BlackItalic.woff2 | Bin 0 -> 29245 bytes
static/fonts/RedHatDisplay-Bold.woff | Bin 0 -> 36920 bytes
static/fonts/RedHatDisplay-Bold.woff2 | Bin 0 -> 29045 bytes
static/fonts/RedHatDisplay-BoldItalic.woff | Bin 0 -> 37944 bytes
static/fonts/RedHatDisplay-BoldItalic.woff2 | Bin 0 -> 29761 bytes
static/fonts/RedHatDisplay-Italic.woff | Bin 0 -> 37172 bytes
static/fonts/RedHatDisplay-Italic.woff2 | Bin 0 -> 29201 bytes
static/fonts/RedHatDisplay-Medium.woff | Bin 0 -> 36532 bytes
static/fonts/RedHatDisplay-Medium.woff2 | Bin 0 -> 28661 bytes
static/fonts/RedHatDisplay-MediumItalic.woff | Bin 0 -> 37568 bytes
static/fonts/RedHatDisplay-MediumItalic.woff2 | Bin 0 -> 29497 bytes
static/fonts/RedHatDisplay-Regular.woff | Bin 0 -> 36432 bytes
static/fonts/RedHatDisplay-Regular.woff2 | Bin 0 -> 28745 bytes
static/fonts/RedHatText-Bold.woff | Bin 0 -> 36396 bytes
static/fonts/RedHatText-Bold.woff2 | Bin 0 -> 28541 bytes
static/fonts/RedHatText-BoldItalic.woff | Bin 0 -> 37384 bytes
static/fonts/RedHatText-BoldItalic.woff2 | Bin 0 -> 29217 bytes
static/fonts/RedHatText-Italic.woff | Bin 0 -> 37348 bytes
static/fonts/RedHatText-Italic.woff2 | Bin 0 -> 29381 bytes
static/fonts/RedHatText-Medium.woff | Bin 0 -> 37096 bytes
static/fonts/RedHatText-Medium.woff2 | Bin 0 -> 29049 bytes
static/fonts/RedHatText-MediumItalic.woff | Bin 0 -> 37888 bytes
static/fonts/RedHatText-MediumItalic.woff2 | Bin 0 -> 29621 bytes
static/fonts/RedHatText-Regular.woff | Bin 0 -> 35980 bytes
static/fonts/RedHatText-Regular.woff2 | Bin 0 -> 28169 bytes
static/fonts/SourceCodePro-It.ttf.woff | Bin 0 -> 58444 bytes
static/fonts/SourceCodePro-Regular.ttf.woff | Bin 0 -> 68152 bytes
static/fonts/SourceCodePro-Semibold.ttf.woff | Bin 0 -> 68080 bytes
32 files changed, 73 insertions(+), 46 deletions(-)
---
diff --git a/static/fonts.css b/static/fonts.css
index 696d01c396..95b9e784ab 100644
--- a/static/fonts.css
+++ b/static/fonts.css
@@ -1,72 +1,72 @@
/*
* SPDX-FileCopyrightText: 2021 GNOME Foundation
*
- * SPDX-License-Identifier: LGPL-2.1-or-later
+ * SPDX-License-Identifier: Apache-2.0 OR GPL-3.0-or-later
*/
/**
* RedHat Fonts taken from https://github.com/RedHatOfficial/RedHatFont
* License: SIL Open Font License 1.1 http://scripts.sil.org/OFL
+ *
+ * SourceCodePro Fonts
+ * License: SIL Open Font License 1.1 https://scripts.sil.org/OFL
*/
-@import
url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,700;1,400;1,700&family=Red+Hat+Display:ital,wght@0,400;0,500;0,700;0,900;1,400;1,500;1,700;1,900&display=swap');
-@import
url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');
-@import
url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&display=swap');
@font-face {
- font-family: "RedHatDisplayWeb";
+ font-family: "Red Hat Display";
src: local('RedHatDisplayWeb'),
- url("RedHatDisplay-Regular.woff2") format("woff2"),
- url("RedHatDisplay-Regular.woff") format("woff");
+ url("fonts/RedHatDisplay-Regular.woff2") format("woff2"),
+ url("fonts/RedHatDisplay-Regular.woff") format("woff");
font-style: normal;
font-weight: 400;
font-display: fallback;
}
@font-face {
- font-family: "RedHatDisplayWeb";
+ font-family: "Red Hat Display";
src: local('RedHatDisplayWeb'),
- url("RedHatDisplay-RegularItalic.woff2") format("woff2"),
- url("RedHatDisplay-RegularItalic.woff") format("woff");
+ url("fonts/RedHatDisplay-RegularItalic.woff2") format("woff2"),
+ url("fonts/RedHatDisplay-RegularItalic.woff") format("woff");
font-style: italic;
font-weight: 400;
font-display: fallback;
}
@font-face {
- font-family: "RedHatDisplayWeb";
+ font-family: "Red Hat Display";
src: local('RedHatDisplayWeb'),
- url("RedHatDisplay-Medium.woff2") format("woff2"),
- url("RedHatDisplay-Medium.woff") format("woff");
+ url("fonts/RedHatDisplay-Medium.woff2") format("woff2"),
+ url("fonts/RedHatDisplay-Medium.woff") format("woff");
font-style: normal;
font-weight: 500;
font-display: fallback;
}
@font-face {
- font-family: "RedHatDisplayWeb";
+ font-family: "Red Hat Display";
src: local('RedHatDisplayWeb'),
- url("RedHatDisplay-MediumItalic.woff2") format("woff2"),
- url("RedHatDisplay-MediumItalic.woff") format("woff");
+ url("fonts/RedHatDisplay-MediumItalic.woff2") format("woff2"),
+ url("fonts/RedHatDisplay-MediumItalic.woff") format("woff");
font-style: italic;
font-weight: 500;
font-display: fallback;
}
@font-face {
- font-family: "RedHatDisplayWeb";
+ font-family: "Red Hat Display";
src: local('RedHatDisplayWeb'),
- url("RedHatDisplay-Bold.woff2") format("woff2"),
- url("RedHatDisplay-Bold.woff") format("woff");
+ url("fonts/RedHatDisplay-Bold.woff2") format("woff2"),
+ url("fonts/RedHatDisplay-Bold.woff") format("woff");
font-style: normal;
font-weight: 700;
font-display: fallback;
}
@font-face {
- font-family: "RedHatDisplayWeb";
+ font-family: "Red Hat Display";
src: local('RedHatDisplayWeb'),
- url("RedHatDisplay-BoldItalic.woff2") format("woff2"),
- url("RedHatDisplay-BoldItalic.woff") format("woff");
+ url("fonts/RedHatDisplay-BoldItalic.woff2") format("woff2"),
+ url("fonts/RedHatDisplay-BoldItalic.woff") format("woff");
font-style: italic;
font-weight: 700;
font-display: fallback;
@@ -74,81 +74,108 @@
@font-face {
- font-family: "RedHatDisplayWeb";
+ font-family: "Red Hat Display";
src: local('RedHatDisplayWeb'),
- url("RedHatDisplay-Black.woff2") format("woff2"),
- url("RedHatDisplay-Black.woff") format("woff");
+ url("fonts/RedHatDisplay-Black.woff2") format("woff2"),
+ url("fonts/RedHatDisplay-Black.woff") format("woff");
font-style: normal;
font-weight: 900;
font-display: fallback;
}
@font-face {
- font-family: "RedHatDisplayWeb";
+ font-family: "Red Hat Display";
src: local('RedHatDisplayWeb'),
- url("RedHatDisplay-BlackItalic.woff2") format("woff2"),
- url("RedHatDisplay-BlackItalic.woff") format("woff");
+ url("fonts/RedHatDisplay-BlackItalic.woff2") format("woff2"),
+ url("fonts/RedHatDisplay-BlackItalic.woff") format("woff");
font-style: italic;
font-weight: 900;
font-display: fallback;
}
@font-face {
- font-family: "RedHatTextWeb";
+ font-family: "Red Hat Text";
src: local('RedHatTextWeb'),
- url("RedHatText-Regular.woff2") format("woff2"),
- url("RedHatText-Regular.woff") format("woff");
+ url("fonts/RedHatText-Regular.woff2") format("woff2"),
+ url("fonts/RedHatText-Regular.woff") format("woff");
font-style: normal;
font-weight: 400;
font-display: fallback;
}
@font-face {
- font-family: "RedHatTextWeb";
+ font-family: "Red Hat Text";
src: local('RedHatTextWeb'),
- url("RedHatText-RegularItalic.woff2") format("woff2"),
- url("RedHatText-RegularItalic.woff") format("woff");
+ url("fonts/RedHatText-Italic.woff2") format("woff2"),
+ url("fonts/RedHatText-Italic.woff") format("woff");
font-style: italic;
font-weight: 400;
font-display: fallback;
}
@font-face {
- font-family: "RedHatTextWeb";
+ font-family: "Red Hat Text";
src: local('RedHatTextWeb'),
- url("RedHatText-Medium.woff2") format("woff2"),
- url("RedHatText-Medium.woff") format("woff");
+ url("fonts/RedHatText-Medium.woff2") format("woff2"),
+ url("fonts/RedHatText-Medium.woff") format("woff");
font-style: normal;
font-weight: 700;
font-display: fallback;
}
@font-face {
- font-family: "RedHatTextWeb";
+ font-family: "Red Hat Text";
src: local('RedHatTextWeb'),
- url("RedHatText-MediumItalic.woff2") format("woff2"),
- url("RedHatText-MediumItalic.woff") format("woff");
+ url("fonts/RedHatText-MediumItalic.woff2") format("woff2"),
+ url("fonts/RedHatText-MediumItalic.woff") format("woff");
font-style: italic;
font-weight: 700;
font-display: fallback;
}
@font-face {
- font-family: "RedHatTextWeb";
+ font-family: "Red Hat Text";
src: local('RedHatTextWeb'),
- url("RedHatText-Bold.woff2") format("woff2"),
- url("RedHatText-Bold.woff") format("woff");
+ url("fonts/RedHatText-Bold.woff2") format("woff2"),
+ url("fonts/RedHatText-Bold.woff") format("woff");
font-style: normal;
font-weight: 900;
font-display: fallback;
}
@font-face {
- font-family: "RedHatTextWeb";
+ font-family: "Red Hat Text";
src: local('RedHatTextWeb'),
- url("RedHatText-BoldItalic.woff2") format("woff2"),
- url("RedHatText-BoldItalic.woff") format("woff");
+ url("fonts/RedHatText-BoldItalic.woff2") format("woff2"),
+ url("fonts/RedHatText-BoldItalic.woff") format("woff");
font-style: italic;
font-weight: 900;
font-display: fallback;
}
+
+/* Do not fall back to locally installed SourceCodePro, as there are
+ * known bad copies being distributed to this day
+ */
+@font-face {
+ font-family: 'Source Code Pro';
+ font-style: normal;
+ font-weight: 400;
+ src: url("fonts/SourceCodePro-Regular.ttf.woff") format('woff');
+ font-display: swap;
+}
+
+@font-face {
+ font-family: 'Source Code Pro';
+ font-style: italic;
+ font-weight: 400;
+ src: url("fonts/SourceCodePro-It.ttf.woff") format('woff');
+ font-display: swap;
+}
+
+@font-face {
+ font-family: 'Source Code Pro';
+ font-style: normal;
+ font-weight: 600;
+ src: url("fonts/SourceCodePro-Semibold.ttf.woff") format('woff');
+ font-display: swap;
+}
diff --git a/static/fonts/RedHatDisplay-Black.woff b/static/fonts/RedHatDisplay-Black.woff
new file mode 100644
index 0000000000..2b40e8930e
Binary files /dev/null and b/static/fonts/RedHatDisplay-Black.woff differ
diff --git a/static/fonts/RedHatDisplay-Black.woff2 b/static/fonts/RedHatDisplay-Black.woff2
new file mode 100644
index 0000000000..e04af6f3cb
Binary files /dev/null and b/static/fonts/RedHatDisplay-Black.woff2 differ
diff --git a/static/fonts/RedHatDisplay-BlackItalic.woff b/static/fonts/RedHatDisplay-BlackItalic.woff
new file mode 100644
index 0000000000..55bcc7d629
Binary files /dev/null and b/static/fonts/RedHatDisplay-BlackItalic.woff differ
diff --git a/static/fonts/RedHatDisplay-BlackItalic.woff2 b/static/fonts/RedHatDisplay-BlackItalic.woff2
new file mode 100644
index 0000000000..5cef33969c
Binary files /dev/null and b/static/fonts/RedHatDisplay-BlackItalic.woff2 differ
diff --git a/static/fonts/RedHatDisplay-Bold.woff b/static/fonts/RedHatDisplay-Bold.woff
new file mode 100644
index 0000000000..c7fa1f3eaa
Binary files /dev/null and b/static/fonts/RedHatDisplay-Bold.woff differ
diff --git a/static/fonts/RedHatDisplay-Bold.woff2 b/static/fonts/RedHatDisplay-Bold.woff2
new file mode 100644
index 0000000000..99e9430dbb
Binary files /dev/null and b/static/fonts/RedHatDisplay-Bold.woff2 differ
diff --git a/static/fonts/RedHatDisplay-BoldItalic.woff b/static/fonts/RedHatDisplay-BoldItalic.woff
new file mode 100644
index 0000000000..5f33eab3f9
Binary files /dev/null and b/static/fonts/RedHatDisplay-BoldItalic.woff differ
diff --git a/static/fonts/RedHatDisplay-BoldItalic.woff2 b/static/fonts/RedHatDisplay-BoldItalic.woff2
new file mode 100644
index 0000000000..141a8a8a05
Binary files /dev/null and b/static/fonts/RedHatDisplay-BoldItalic.woff2 differ
diff --git a/static/fonts/RedHatDisplay-Italic.woff b/static/fonts/RedHatDisplay-Italic.woff
new file mode 100644
index 0000000000..48c4c0c2d2
Binary files /dev/null and b/static/fonts/RedHatDisplay-Italic.woff differ
diff --git a/static/fonts/RedHatDisplay-Italic.woff2 b/static/fonts/RedHatDisplay-Italic.woff2
new file mode 100644
index 0000000000..5bf78c6746
Binary files /dev/null and b/static/fonts/RedHatDisplay-Italic.woff2 differ
diff --git a/static/fonts/RedHatDisplay-Medium.woff b/static/fonts/RedHatDisplay-Medium.woff
new file mode 100644
index 0000000000..7a88f9dfec
Binary files /dev/null and b/static/fonts/RedHatDisplay-Medium.woff differ
diff --git a/static/fonts/RedHatDisplay-Medium.woff2 b/static/fonts/RedHatDisplay-Medium.woff2
new file mode 100644
index 0000000000..ad059b9f61
Binary files /dev/null and b/static/fonts/RedHatDisplay-Medium.woff2 differ
diff --git a/static/fonts/RedHatDisplay-MediumItalic.woff b/static/fonts/RedHatDisplay-MediumItalic.woff
new file mode 100644
index 0000000000..e0dd071069
Binary files /dev/null and b/static/fonts/RedHatDisplay-MediumItalic.woff differ
diff --git a/static/fonts/RedHatDisplay-MediumItalic.woff2 b/static/fonts/RedHatDisplay-MediumItalic.woff2
new file mode 100644
index 0000000000..64e92a923d
Binary files /dev/null and b/static/fonts/RedHatDisplay-MediumItalic.woff2 differ
diff --git a/static/fonts/RedHatDisplay-Regular.woff b/static/fonts/RedHatDisplay-Regular.woff
new file mode 100644
index 0000000000..c9a84dcb6c
Binary files /dev/null and b/static/fonts/RedHatDisplay-Regular.woff differ
diff --git a/static/fonts/RedHatDisplay-Regular.woff2 b/static/fonts/RedHatDisplay-Regular.woff2
new file mode 100644
index 0000000000..6dd719d8c3
Binary files /dev/null and b/static/fonts/RedHatDisplay-Regular.woff2 differ
diff --git a/static/fonts/RedHatText-Bold.woff b/static/fonts/RedHatText-Bold.woff
new file mode 100644
index 0000000000..c8809fc3e3
Binary files /dev/null and b/static/fonts/RedHatText-Bold.woff differ
diff --git a/static/fonts/RedHatText-Bold.woff2 b/static/fonts/RedHatText-Bold.woff2
new file mode 100644
index 0000000000..f005a6c615
Binary files /dev/null and b/static/fonts/RedHatText-Bold.woff2 differ
diff --git a/static/fonts/RedHatText-BoldItalic.woff b/static/fonts/RedHatText-BoldItalic.woff
new file mode 100644
index 0000000000..6fe3b72b13
Binary files /dev/null and b/static/fonts/RedHatText-BoldItalic.woff differ
diff --git a/static/fonts/RedHatText-BoldItalic.woff2 b/static/fonts/RedHatText-BoldItalic.woff2
new file mode 100644
index 0000000000..65c1728584
Binary files /dev/null and b/static/fonts/RedHatText-BoldItalic.woff2 differ
diff --git a/static/fonts/RedHatText-Italic.woff b/static/fonts/RedHatText-Italic.woff
new file mode 100644
index 0000000000..b85c88fb48
Binary files /dev/null and b/static/fonts/RedHatText-Italic.woff differ
diff --git a/static/fonts/RedHatText-Italic.woff2 b/static/fonts/RedHatText-Italic.woff2
new file mode 100644
index 0000000000..2e95810898
Binary files /dev/null and b/static/fonts/RedHatText-Italic.woff2 differ
diff --git a/static/fonts/RedHatText-Medium.woff b/static/fonts/RedHatText-Medium.woff
new file mode 100644
index 0000000000..76dd613395
Binary files /dev/null and b/static/fonts/RedHatText-Medium.woff differ
diff --git a/static/fonts/RedHatText-Medium.woff2 b/static/fonts/RedHatText-Medium.woff2
new file mode 100644
index 0000000000..c030e8f8bb
Binary files /dev/null and b/static/fonts/RedHatText-Medium.woff2 differ
diff --git a/static/fonts/RedHatText-MediumItalic.woff b/static/fonts/RedHatText-MediumItalic.woff
new file mode 100644
index 0000000000..eb173f34b3
Binary files /dev/null and b/static/fonts/RedHatText-MediumItalic.woff differ
diff --git a/static/fonts/RedHatText-MediumItalic.woff2 b/static/fonts/RedHatText-MediumItalic.woff2
new file mode 100644
index 0000000000..b75418776a
Binary files /dev/null and b/static/fonts/RedHatText-MediumItalic.woff2 differ
diff --git a/static/fonts/RedHatText-Regular.woff b/static/fonts/RedHatText-Regular.woff
new file mode 100644
index 0000000000..b0e94af5ee
Binary files /dev/null and b/static/fonts/RedHatText-Regular.woff differ
diff --git a/static/fonts/RedHatText-Regular.woff2 b/static/fonts/RedHatText-Regular.woff2
new file mode 100644
index 0000000000..b8adb0d47a
Binary files /dev/null and b/static/fonts/RedHatText-Regular.woff2 differ
diff --git a/static/fonts/SourceCodePro-It.ttf.woff b/static/fonts/SourceCodePro-It.ttf.woff
new file mode 100644
index 0000000000..8d68f2febd
Binary files /dev/null and b/static/fonts/SourceCodePro-It.ttf.woff differ
diff --git a/static/fonts/SourceCodePro-Regular.ttf.woff b/static/fonts/SourceCodePro-Regular.ttf.woff
new file mode 100644
index 0000000000..7be076e1fc
Binary files /dev/null and b/static/fonts/SourceCodePro-Regular.ttf.woff differ
diff --git a/static/fonts/SourceCodePro-Semibold.ttf.woff b/static/fonts/SourceCodePro-Semibold.ttf.woff
new file mode 100644
index 0000000000..61bc67b802
Binary files /dev/null and b/static/fonts/SourceCodePro-Semibold.ttf.woff differ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]