discourse-fonts 0.0.9 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/discourse_fonts.rb +247 -186
- data/vendor/assets/fonts/Inter.ttf +0 -0
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8b0dda6379e28d3d8578dfcdb9609331197f3a38f9132d4c7099c8a75d67071
|
4
|
+
data.tar.gz: 17654b7cc1bf00ee5d6b54a47d3ca55763d30d728c5b8aaafe28cb493257c784
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f7e7beddd10ee1291a385b6ca3951adaac167a249d6d090892d38bae4a3f28b94de517b5e9444b5e2adecfd3d9480934489cbe4e8d883c07f0c21b3473daefd
|
7
|
+
data.tar.gz: 901073481555ea4cbae9237712883fa6b6ff714dc985dcce914508cbe4148ea2e1d5c605689dce9d591aa62e2436a2ce39af3a7c414ba3066b55b61602777e81
|
data/lib/discourse_fonts.rb
CHANGED
@@ -1,197 +1,258 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module DiscourseFonts
|
4
|
-
VERSION = "0.0.
|
4
|
+
VERSION = "0.0.11"
|
5
5
|
|
6
6
|
def self.path_for_fonts
|
7
7
|
File.expand_path("../../vendor/assets/fonts", __FILE__)
|
8
8
|
end
|
9
9
|
|
10
10
|
def self.fonts
|
11
|
-
@fonts ||=
|
12
|
-
|
13
|
-
name: "Arial",
|
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
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
11
|
+
@fonts ||=
|
12
|
+
[
|
13
|
+
{ name: "Arial", stack: "Arial, sans-serif" },
|
14
|
+
{
|
15
|
+
name: "System",
|
16
|
+
stack:
|
17
|
+
"-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
name: "Open Sans",
|
21
|
+
stack: "Open Sans, Arial, sans-serif",
|
22
|
+
variants: [
|
23
|
+
{
|
24
|
+
filename: "OpenSans-Regular.ttf",
|
25
|
+
format: "truetype",
|
26
|
+
weight: 400
|
27
|
+
},
|
28
|
+
{ filename: "OpenSans-Bold.ttf", format: "truetype", weight: 700 }
|
29
|
+
]
|
30
|
+
},
|
31
|
+
{
|
32
|
+
name: "Oxanium",
|
33
|
+
stack: "Oxanium, Arial, sans-serif",
|
34
|
+
variants: [
|
35
|
+
{ filename: "oxanium-regular.woff2", format: "woff2", weight: 400 },
|
36
|
+
{ filename: "oxanium-bold.woff2", format: "woff2", weight: 700 }
|
37
|
+
]
|
38
|
+
},
|
39
|
+
{
|
40
|
+
name: "Roboto",
|
41
|
+
stack: "Roboto, Arial, sans-serif",
|
42
|
+
variants: [
|
43
|
+
{ filename: "Roboto-Regular.ttf", format: "truetype", weight: 400 },
|
44
|
+
{ filename: "Roboto-Bold.ttf", format: "truetype", weight: 700 }
|
45
|
+
]
|
46
|
+
},
|
47
|
+
{
|
48
|
+
name: "Lato",
|
49
|
+
stack: "Lato, Arial, sans-serif",
|
50
|
+
variants: [
|
51
|
+
{ filename: "Lato-Regular.ttf", format: "truetype", weight: 400 },
|
52
|
+
{ filename: "Lato-Bold.ttf", format: "truetype", weight: 700 }
|
53
|
+
]
|
54
|
+
},
|
55
|
+
{
|
56
|
+
name: "Inter",
|
57
|
+
stack: "Inter, Arial, sans-serif",
|
58
|
+
variants: [{ filename: "Inter.ttf", format: "truetype", weight: 400 }]
|
59
|
+
},
|
60
|
+
{
|
61
|
+
name: "NotoSansJP",
|
62
|
+
stack: "NotoSansJP, Arial, sans-serif",
|
63
|
+
variants: [
|
64
|
+
{ filename: "NotoSansJP-Regular.otf", weight: 400 },
|
65
|
+
{ filename: "NotoSansJP-Bold.otf", weight: 700 }
|
66
|
+
]
|
67
|
+
},
|
68
|
+
{
|
69
|
+
name: "Montserrat",
|
70
|
+
stack: "Montserrat, Arial, sans-serif",
|
71
|
+
variants: [
|
72
|
+
{
|
73
|
+
filename: "Montserrat-Regular.ttf",
|
74
|
+
format: "truetype",
|
75
|
+
weight: 400
|
76
|
+
},
|
77
|
+
{ filename: "Montserrat-Bold.ttf", format: "truetype", weight: 700 }
|
78
|
+
]
|
79
|
+
},
|
80
|
+
{
|
81
|
+
name: "RobotoCondensed",
|
82
|
+
stack: "RobotoCondensed, Arial, sans-serif",
|
83
|
+
variants: [
|
84
|
+
{
|
85
|
+
filename: "RobotoCondensed-Regular.ttf",
|
86
|
+
format: "truetype",
|
87
|
+
weight: 400
|
88
|
+
},
|
89
|
+
{
|
90
|
+
filename: "RobotoCondensed-Bold.ttf",
|
91
|
+
format: "truetype",
|
92
|
+
weight: 700
|
93
|
+
}
|
94
|
+
]
|
95
|
+
},
|
96
|
+
{
|
97
|
+
name: "SourceSansPro",
|
98
|
+
stack: "SourceSansPro, Arial, sans-serif",
|
99
|
+
variants: [
|
100
|
+
{
|
101
|
+
filename: "SourceSansPro-Regular.ttf",
|
102
|
+
format: "truetype",
|
103
|
+
weight: 400
|
104
|
+
},
|
105
|
+
{
|
106
|
+
filename: "SourceSansPro-Bold.ttf",
|
107
|
+
format: "truetype",
|
108
|
+
weight: 700
|
109
|
+
}
|
110
|
+
]
|
111
|
+
},
|
112
|
+
{
|
113
|
+
name: "Oswald",
|
114
|
+
stack: "Oswald, Arial, sans-serif",
|
115
|
+
variants: [
|
116
|
+
{ filename: "Oswald-Regular.ttf", format: "truetype", weight: 400 },
|
117
|
+
{ filename: "Oswald-Bold.ttf", format: "truetype", weight: 700 }
|
118
|
+
]
|
119
|
+
},
|
120
|
+
{
|
121
|
+
name: "Raleway",
|
122
|
+
stack: "Raleway, Arial, sans-serif",
|
123
|
+
variants: [
|
124
|
+
{
|
125
|
+
filename: "Raleway-Regular.ttf",
|
126
|
+
format: "truetype",
|
127
|
+
weight: 400
|
128
|
+
},
|
129
|
+
{ filename: "Raleway-Bold.ttf", format: "truetype", weight: 700 }
|
130
|
+
]
|
131
|
+
},
|
132
|
+
{
|
133
|
+
name: "RobotoMono",
|
134
|
+
stack: "RobotoMono, Arial, sans-serif",
|
135
|
+
variants: [
|
136
|
+
{
|
137
|
+
filename: "RobotoMono-Regular.ttf",
|
138
|
+
format: "truetype",
|
139
|
+
weight: 400
|
140
|
+
},
|
141
|
+
{ filename: "RobotoMono-Bold.ttf", format: "truetype", weight: 700 }
|
142
|
+
]
|
143
|
+
},
|
144
|
+
{
|
145
|
+
name: "Poppins",
|
146
|
+
stack: "Poppins, Arial, sans-serif",
|
147
|
+
variants: [
|
148
|
+
{
|
149
|
+
filename: "Poppins-Regular.ttf",
|
150
|
+
format: "truetype",
|
151
|
+
weight: 400
|
152
|
+
},
|
153
|
+
{ filename: "Poppins-Bold.ttf", format: "truetype", weight: 700 }
|
154
|
+
]
|
155
|
+
},
|
156
|
+
{
|
157
|
+
name: "NotoSans",
|
158
|
+
stack: "NotoSans, Arial, sans-serif",
|
159
|
+
variants: [
|
160
|
+
{
|
161
|
+
filename: "NotoSans-Regular.ttf",
|
162
|
+
format: "truetype",
|
163
|
+
weight: 400
|
164
|
+
},
|
165
|
+
{ filename: "NotoSans-Bold.ttf", format: "truetype", weight: 700 }
|
166
|
+
]
|
167
|
+
},
|
168
|
+
{
|
169
|
+
name: "RobotoSlab",
|
170
|
+
stack: "RobotoSlab, Arial, sans-serif",
|
171
|
+
variants: [
|
172
|
+
{
|
173
|
+
filename: "RobotoSlab-Regular.ttf",
|
174
|
+
format: "truetype",
|
175
|
+
weight: 400
|
176
|
+
},
|
177
|
+
{ filename: "RobotoSlab-Bold.ttf", format: "truetype", weight: 700 }
|
178
|
+
]
|
179
|
+
},
|
180
|
+
{
|
181
|
+
name: "Merriweather",
|
182
|
+
stack: "Merriweather, Arial, sans-serif",
|
183
|
+
variants: [
|
184
|
+
{
|
185
|
+
filename: "Merriweather-Regular.ttf",
|
186
|
+
format: "truetype",
|
187
|
+
weight: 400
|
188
|
+
},
|
189
|
+
{
|
190
|
+
filename: "Merriweather-Bold.ttf",
|
191
|
+
format: "truetype",
|
192
|
+
weight: 700
|
193
|
+
}
|
194
|
+
]
|
195
|
+
},
|
196
|
+
{
|
197
|
+
name: "Ubuntu",
|
198
|
+
stack: "Ubuntu, Arial, sans-serif",
|
199
|
+
variants: [
|
200
|
+
{ filename: "Ubuntu-Regular.ttf", format: "truetype", weight: 400 },
|
201
|
+
{ filename: "Ubuntu-Bold.ttf", format: "truetype", weight: 700 }
|
202
|
+
]
|
203
|
+
},
|
204
|
+
{
|
205
|
+
name: "PTSans",
|
206
|
+
stack: "PTSans, Arial, sans-serif",
|
207
|
+
variants: [
|
208
|
+
{ filename: "PTSans-Regular.ttf", format: "truetype", weight: 400 },
|
209
|
+
{ filename: "PTSans-Bold.ttf", format: "truetype", weight: 700 }
|
210
|
+
]
|
211
|
+
},
|
212
|
+
{
|
213
|
+
name: "PlayfairDisplay",
|
214
|
+
stack: "PlayfairDisplay, Arial, sans-serif",
|
215
|
+
variants: [
|
216
|
+
{
|
217
|
+
filename: "PlayfairDisplay-Regular.ttf",
|
218
|
+
format: "truetype",
|
219
|
+
weight: 400
|
220
|
+
},
|
221
|
+
{
|
222
|
+
filename: "PlayfairDisplay-Bold.ttf",
|
223
|
+
format: "truetype",
|
224
|
+
weight: 700
|
225
|
+
}
|
226
|
+
]
|
227
|
+
},
|
228
|
+
{
|
229
|
+
name: "Nunito",
|
230
|
+
stack: "Nunito, Arial, sans-serif",
|
231
|
+
variants: [
|
232
|
+
{ filename: "Nunito-Regular.ttf", format: "truetype", weight: 400 },
|
233
|
+
{ filename: "Nunito-Bold.ttf", format: "truetype", weight: 700 }
|
234
|
+
]
|
235
|
+
},
|
236
|
+
{
|
237
|
+
name: "Lora",
|
238
|
+
stack: "Lora, Arial, sans-serif",
|
239
|
+
variants: [
|
240
|
+
{ filename: "Lora-Regular.ttf", format: "truetype", weight: 400 },
|
241
|
+
{ filename: "Lora-Bold.ttf", format: "truetype", weight: 700 }
|
242
|
+
]
|
243
|
+
},
|
244
|
+
{
|
245
|
+
name: "Mukta",
|
246
|
+
stack: "Mukta, Arial, sans-serif",
|
247
|
+
variants: [
|
248
|
+
{ filename: "Mukta-Regular.ttf", format: "truetype", weight: 400 },
|
249
|
+
{ filename: "Mukta-Bold.ttf", format: "truetype", weight: 700 }
|
250
|
+
]
|
251
|
+
},
|
252
|
+
{ name: "Helvetica", stack: "Helvetica, Arial, sans-serif" }
|
253
|
+
].map do |font|
|
254
|
+
font[:key] = font[:name].underscore.tr(" ", "_")
|
255
|
+
font
|
256
|
+
end
|
196
257
|
end
|
197
258
|
end
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: discourse-fonts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bianca Nenciu
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '3.9'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: '3.9'
|
41
41
|
description: Bundle of fonts which can be used to customize the look of Discourse
|
42
42
|
email: bianca.nenciu@discourse.org
|
43
43
|
executables: []
|
@@ -45,6 +45,7 @@ extensions: []
|
|
45
45
|
extra_rdoc_files: []
|
46
46
|
files:
|
47
47
|
- lib/discourse_fonts.rb
|
48
|
+
- vendor/assets/fonts/Inter.ttf
|
48
49
|
- vendor/assets/fonts/Lato-Bold.ttf
|
49
50
|
- vendor/assets/fonts/Lato-Regular.ttf
|
50
51
|
- vendor/assets/fonts/Lora-Bold.ttf
|
@@ -91,7 +92,7 @@ homepage: https://github.com/discourse/discourse-fonts
|
|
91
92
|
licenses:
|
92
93
|
- MIT
|
93
94
|
metadata: {}
|
94
|
-
post_install_message:
|
95
|
+
post_install_message:
|
95
96
|
rdoc_options: []
|
96
97
|
require_paths:
|
97
98
|
- lib
|
@@ -99,15 +100,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
99
100
|
requirements:
|
100
101
|
- - ">="
|
101
102
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
103
|
+
version: 3.3.0
|
103
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
105
|
requirements:
|
105
106
|
- - ">="
|
106
107
|
- !ruby/object:Gem::Version
|
107
108
|
version: '0'
|
108
109
|
requirements: []
|
109
|
-
rubygems_version: 3.
|
110
|
-
signing_key:
|
110
|
+
rubygems_version: 3.5.22
|
111
|
+
signing_key:
|
111
112
|
specification_version: 4
|
112
113
|
summary: Bundle of customizable Discourse fonts
|
113
114
|
test_files: []
|