This is an automated email from the ASF dual-hosted git repository.

mbrohl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ofbiz-site.git

commit 6c1af752cbcd6ae1409014979083ab75133beea3
Author: Michael Brohl <michael.br...@ecomify.de>
AuthorDate: Sat Feb 18 14:33:55 2023 +0100

    Implemented: OFBiz Website: store and load fonts locally (OFBIZ-12763)
    
    Provides the local font files, fonts.css containing the font faces and the 
change to the header to laod fonts.css.
---
 css/fonts.css                      |  55 +++++++++++++++++++++++++++++++++++++
 fonts/OpenSans-Bold.ttf            | Bin 0 -> 129784 bytes
 fonts/OpenSans-BoldItalic.ttf      | Bin 0 -> 135108 bytes
 fonts/OpenSans-ExtraBold.ttf       | Bin 0 -> 130180 bytes
 fonts/OpenSans-ExtraBoldItalic.ttf | Bin 0 -> 135688 bytes
 fonts/OpenSans-Italic.ttf          | Bin 0 -> 135380 bytes
 fonts/OpenSans-Light.ttf           | Bin 0 -> 129756 bytes
 fonts/OpenSans-LightItalic.ttf     | Bin 0 -> 135668 bytes
 fonts/OpenSans-Regular.ttf         | Bin 0 -> 129796 bytes
 template/region/head.tpl.php       |   4 +--
 10 files changed, 57 insertions(+), 2 deletions(-)

diff --git a/css/fonts.css b/css/fonts.css
new file mode 100644
index 0000000..c4caa18
--- /dev/null
+++ b/css/fonts.css
@@ -0,0 +1,55 @@
+@font-face {
+    font-family: "Open Sans";
+    font-weight: 300;
+    font-style: normal;
+    src: url(/fonts/OpenSans-Light.ttf) format("truetype");
+}
+
+@font-face {
+    font-family: "Open Sans";
+    font-weight: 300;
+    font-style: italic;
+    src: url(/fonts/OpenSans-LightItalic.ttf) format("truetype");
+}
+
+@font-face {
+    font-family: "Open Sans";
+    font-weight: 400;
+    font-style: normal;
+    src: url(/fonts/OpenSans-Regular.ttf) format("truetype");
+}
+
+@font-face {
+    font-family: "Open Sans";
+    font-weight: 400;
+    font-style: italic;
+    src: url(/fonts/OpenSans-Italic.ttf) format("truetype");
+}
+
+@font-face {
+    font-family: "Open Sans";
+    font-weight: 700;
+    font-style: normal;
+    src: url(/fonts/OpenSans-Bold.ttf) format("truetype");
+}
+
+@font-face {
+    font-family: "Open Sans";
+    font-weight: 700;
+    font-style: italic;
+    src: url(/fonts/OpenSans-BoldItalic.ttf) format("truetype");
+}
+
+@font-face {
+    font-family: "Open Sans";
+    font-weight: 800;
+    font-style: normal;
+    src: url(/fonts/OpenSans-ExtraBold.ttf) format("truetype");
+}
+
+@font-face {
+    font-family: "Open Sans";
+    font-weight: 800;
+    font-style: italic;
+    src: url(/fonts/OpenSans-ExtraBoldItalic.ttf) format("truetype");
+}
\ No newline at end of file
diff --git a/fonts/OpenSans-Bold.ttf b/fonts/OpenSans-Bold.ttf
new file mode 100644
index 0000000..a1398b3
Binary files /dev/null and b/fonts/OpenSans-Bold.ttf differ
diff --git a/fonts/OpenSans-BoldItalic.ttf b/fonts/OpenSans-BoldItalic.ttf
new file mode 100644
index 0000000..307122c
Binary files /dev/null and b/fonts/OpenSans-BoldItalic.ttf differ
diff --git a/fonts/OpenSans-ExtraBold.ttf b/fonts/OpenSans-ExtraBold.ttf
new file mode 100644
index 0000000..08d7185
Binary files /dev/null and b/fonts/OpenSans-ExtraBold.ttf differ
diff --git a/fonts/OpenSans-ExtraBoldItalic.ttf 
b/fonts/OpenSans-ExtraBoldItalic.ttf
new file mode 100644
index 0000000..c35f57f
Binary files /dev/null and b/fonts/OpenSans-ExtraBoldItalic.ttf differ
diff --git a/fonts/OpenSans-Italic.ttf b/fonts/OpenSans-Italic.ttf
new file mode 100644
index 0000000..790286f
Binary files /dev/null and b/fonts/OpenSans-Italic.ttf differ
diff --git a/fonts/OpenSans-Light.ttf b/fonts/OpenSans-Light.ttf
new file mode 100644
index 0000000..d9a9e27
Binary files /dev/null and b/fonts/OpenSans-Light.ttf differ
diff --git a/fonts/OpenSans-LightItalic.ttf b/fonts/OpenSans-LightItalic.ttf
new file mode 100644
index 0000000..77f2e6c
Binary files /dev/null and b/fonts/OpenSans-LightItalic.ttf differ
diff --git a/fonts/OpenSans-Regular.ttf b/fonts/OpenSans-Regular.ttf
new file mode 100644
index 0000000..1dc226d
Binary files /dev/null and b/fonts/OpenSans-Regular.ttf differ
diff --git a/template/region/head.tpl.php b/template/region/head.tpl.php
index 10177b8..6247b28 100644
--- a/template/region/head.tpl.php
+++ b/template/region/head.tpl.php
@@ -14,10 +14,10 @@
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
 <!-- CSS
     ================================================== -->
+<!-- local fonts  -->
+<link type="text/css" id="fonts" rel="stylesheet" href="/css/fonts.css">
 <!-- Bootstrap  -->
 <link type="text/css" rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
-<!-- web font  -->
-<link href="//fonts.googleapis.com/css?family=Open+Sans:400,300,800" 
rel="stylesheet" type="text/css">
 <!-- plugin css  -->
 <link rel="stylesheet" type="text/css" 
href="/js/plugins/pretty-photo/css/prettyPhoto.css" />
 <link rel="stylesheet" type="text/css" 
href="/js/plugins/rs-plugin/css/settings.css" media="screen" />

Reply via email to