Package: libjs-bootswatch / 3.3.5+2+dfsg1-1

change-font-path-in-paper-theme.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
From e357fc4ae2fd4a5c093d8546efbc5eb8ed1da69d Mon Sep 17 00:00:00 2001
From: Ivan Udovichenko <iudovichenko@mirantis.com>
Date: Tue, 8 Sep 2015 23:50:05 +0300
Subject: [PATCH] Replace URLs with local path to Roboto fonts

---
 paper/_bootswatch.scss  |  2 +-
 paper/bootstrap.css     |  2 +-
 paper/bootswatch.less   |  2 +-
 paper/roboto-debian.css | 24 ++++++++++++++++++++++++
 4 files changed, 27 insertions(+), 3 deletions(-)
 create mode 100644 paper/roboto-debian.css

diff --git a/paper/_bootswatch.scss b/paper/_bootswatch.scss
index e9256de..50f5ba3 100644
--- a/paper/_bootswatch.scss
+++ b/paper/_bootswatch.scss
@@ -2,7 +2,7 @@
 // Bootswatch
 // -----------------------------------------------------
 
-@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700");
+@import url('roboto-debian.css');
 
 // Navbar =====================================================================
 
diff --git a/paper/bootstrap.css b/paper/bootstrap.css
index 99a4307..5c8f730 100644
--- a/paper/bootstrap.css
+++ b/paper/bootstrap.css
@@ -1,4 +1,4 @@
-@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700");
+@import url('roboto-debian.css');
 /*!
  * bootswatch v3.3.5
  * Homepage: http://bootswatch.com
diff --git a/paper/bootswatch.less b/paper/bootswatch.less
index b7ddcf6..05f3726 100644
--- a/paper/bootswatch.less
+++ b/paper/bootswatch.less
@@ -2,7 +2,7 @@
 // Bootswatch
 // -----------------------------------------------------
 
-@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700");
+@import url('roboto-debian.css');
 
 // Navbar =====================================================================
 
diff --git a/paper/roboto-debian.css b/paper/roboto-debian.css
new file mode 100644
index 0000000..fe5a2c9
--- /dev/null
+++ b/paper/roboto-debian.css
@@ -0,0 +1,24 @@
+@font-face {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 300;
+  src: local('Roboto Light'), local('Roboto-Light'), url(fonts/Roboto-Light.woff2) format('woff2');
+}
+@font-face {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 400;
+  src: local('Roboto'), local('Roboto-Regular'), url(fonts/Roboto-Regular.woff2) format('woff2');
+}
+@font-face {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 500;
+  src: local('Roboto Medium'), local('Roboto-Medium'), url(fonts/Roboto-Medium.woff2) format('woff2');
+}
+@font-face {
+  font-family: 'Roboto';
+  font-style: normal;
+  font-weight: 700;
+  src: local('Roboto Bold'), local('Roboto-Bold'), url(fonts/Roboto-Bold.woff2) format('woff2');
+}
-- 
2.1.4