This is an automated email from the ASF dual-hosted git repository.
wangdan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus-website.git
The following commit(s) were added to refs/heads/master by this push:
new 3e3f4ca Use the local hosted fonts (#22)
3e3f4ca is described below
commit 3e3f4cadb038f1cc619ba65931a735e1f9de00ca
Author: Yingchun Lai <[email protected]>
AuthorDate: Thu Nov 2 13:47:59 2023 +0800
Use the local hosted fonts (#22)
Fix issues reported from: https://whimsy.apache.org/pods/project/pegasus
Follow the rule [1] of:
> Can I use Google Fonts?
You can use Google Fonts, but please host the fonts on ASF servers.
>
> ASF projects don’t have any reason to load Google Fonts from Google
servers. Even [performance
wise](https://wicki.io/posts/2020-11-goodbye-google-fonts/), there is no reason
to use Google CDNs.
>
> To prevent any data being transmitted to a third party, [download the
fonts and host them with your project
website](https://github.com/google/fonts#self-host-fonts-available-from-google-fonts).
1. https://privacy.apache.org/faq/committers.html
---
_sass/_main.scss | 21 ++++++++++++++++++---
assets/fonts/PatuaOne-Regular.ttf | Bin 0 -> 35624 bytes
assets/fonts/TitilliumWeb-Regular.ttf | Bin 0 -> 63660 bytes
assets/fonts/UbuntuMono-Regular.ttf | Bin 0 -> 205748 bytes
4 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/_sass/_main.scss b/_sass/_main.scss
index 8c28c8c..7096cb5 100644
--- a/_sass/_main.scss
+++ b/_sass/_main.scss
@@ -1,8 +1,23 @@
@charset "utf-8";
+
// for apache pegasus title
-@import url(//fonts.googleapis.com/css?family=Patua+One);
-@import url(//fonts.googleapis.com/css?family=Ubuntu+Mono);
-@import url(//fonts.googleapis.com/css?family=Titillium+Web);
+// Patua One
+@font-face {
+ font-family: 'Patua One';
+ src: url(/assets/fonts/PatuaOne-Regular.ttf)
+}
+
+// Ubuntu Mono
+@font-face {
+ font-family: 'Ubuntu Mono';
+ src: url(/assets/fonts/UbuntuMono-Regular.ttf)
+}
+
+// Titillium Web
+@font-face {
+ font-family: 'Titillium Web';
+ src: url(/assets/fonts/TitilliumWeb-Regular.ttf)
+}
$primary: #188eac !default;
$info: #419eda;
diff --git a/assets/fonts/PatuaOne-Regular.ttf
b/assets/fonts/PatuaOne-Regular.ttf
new file mode 100644
index 0000000..25dd68f
Binary files /dev/null and b/assets/fonts/PatuaOne-Regular.ttf differ
diff --git a/assets/fonts/TitilliumWeb-Regular.ttf
b/assets/fonts/TitilliumWeb-Regular.ttf
new file mode 100644
index 0000000..4fd6b7f
Binary files /dev/null and b/assets/fonts/TitilliumWeb-Regular.ttf differ
diff --git a/assets/fonts/UbuntuMono-Regular.ttf
b/assets/fonts/UbuntuMono-Regular.ttf
new file mode 100644
index 0000000..fdd309d
Binary files /dev/null and b/assets/fonts/UbuntuMono-Regular.ttf differ
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]