discourse-fonts 0.0.3 → 0.0.8
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 +33 -25
- data/vendor/assets/fonts/NotoSansJP-Bold.otf +0 -0
- data/vendor/assets/fonts/NotoSansJP-Regular.otf +0 -0
- metadata +38 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38f13c9220bbfd23c2803750e13b8d83ef53c26c8f8a9e3bb7a3090a22452b17
|
4
|
+
data.tar.gz: 0b2e46a1451d1d88a826ce806d1326f8b88445c86bc2830c01077dca0a6b7fbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 948e3f23c749d1c8c66a52fd39d5407b973109970a23c850857eadb39aa2df2945fdf3fcabbf59642b5bc6edec37047bfa039bbcaf1a8341635060e34a06c744
|
7
|
+
data.tar.gz: 74ac922d390c47a3e095740d6728c873bd3deefc0719eeb898cbd3471797f53cb99aa16d7cc362cd7782097562c3361febfd7ab5baf0114073d071c150bbc6fd
|
data/lib/discourse_fonts.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module DiscourseFonts
|
4
|
-
VERSION = "0.0.
|
4
|
+
VERSION = "0.0.8"
|
5
5
|
|
6
6
|
def self.path_for_fonts
|
7
7
|
File.expand_path("../../vendor/assets/fonts", __FILE__)
|
@@ -10,12 +10,16 @@ module DiscourseFonts
|
|
10
10
|
def self.fonts
|
11
11
|
@fonts ||= [
|
12
12
|
{
|
13
|
-
name: "
|
14
|
-
stack: "
|
13
|
+
name: "Arial",
|
14
|
+
stack: "Arial, sans-serif",
|
15
|
+
},
|
16
|
+
{
|
17
|
+
name: "System",
|
18
|
+
stack: "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif",
|
15
19
|
},
|
16
20
|
{
|
17
21
|
name: "Open Sans",
|
18
|
-
stack: "Open Sans,
|
22
|
+
stack: "Open Sans, Arial, sans-serif",
|
19
23
|
variants: [
|
20
24
|
{ filename: "OpenSans-Regular.ttf", format: "truetype", weight: 400 },
|
21
25
|
{ filename: "OpenSans-Bold.ttf", format: "truetype", weight: 700 }
|
@@ -23,7 +27,7 @@ module DiscourseFonts
|
|
23
27
|
},
|
24
28
|
{
|
25
29
|
name: "Oxanium",
|
26
|
-
stack: "Oxanium,
|
30
|
+
stack: "Oxanium, Arial, sans-serif",
|
27
31
|
variants: [
|
28
32
|
{ filename: "oxanium-regular.woff2", format: "woff2", weight: 400 },
|
29
33
|
{ filename: "oxanium-bold.woff2", format: "woff2", weight: 700 }
|
@@ -31,7 +35,7 @@ module DiscourseFonts
|
|
31
35
|
},
|
32
36
|
{
|
33
37
|
name: "Roboto",
|
34
|
-
stack: "Roboto,
|
38
|
+
stack: "Roboto, Arial, sans-serif",
|
35
39
|
variants: [
|
36
40
|
{ filename: "Roboto-Regular.ttf", format: "truetype", weight: 400 },
|
37
41
|
{ filename: "Roboto-Bold.ttf", format: "truetype", weight: 700 }
|
@@ -39,7 +43,7 @@ module DiscourseFonts
|
|
39
43
|
},
|
40
44
|
{
|
41
45
|
name: "Lato",
|
42
|
-
stack: "Lato,
|
46
|
+
stack: "Lato, Arial, sans-serif",
|
43
47
|
variants: [
|
44
48
|
{ filename: "Lato-Regular.ttf", format: "truetype", weight: 400 },
|
45
49
|
{ filename: "Lato-Bold.ttf", format: "truetype", weight: 700 }
|
@@ -47,7 +51,7 @@ module DiscourseFonts
|
|
47
51
|
},
|
48
52
|
{
|
49
53
|
name: "NotoSansJP",
|
50
|
-
stack: "NotoSansJP,
|
54
|
+
stack: "NotoSansJP, Arial, sans-serif",
|
51
55
|
variants: [
|
52
56
|
{ filename: "NotoSansJP-Regular.otf", weight: 400 },
|
53
57
|
{ filename: "NotoSansJP-Bold.otf", weight: 700 }
|
@@ -55,7 +59,7 @@ module DiscourseFonts
|
|
55
59
|
},
|
56
60
|
{
|
57
61
|
name: "Montserrat",
|
58
|
-
stack: "Montserrat,
|
62
|
+
stack: "Montserrat, Arial, sans-serif",
|
59
63
|
variants: [
|
60
64
|
{ filename: "Montserrat-Regular.ttf", format: "truetype", weight: 400 },
|
61
65
|
{ filename: "Montserrat-Bold.ttf", format: "truetype", weight: 700 }
|
@@ -63,7 +67,7 @@ module DiscourseFonts
|
|
63
67
|
},
|
64
68
|
{
|
65
69
|
name: "RobotoCondensed",
|
66
|
-
stack: "RobotoCondensed,
|
70
|
+
stack: "RobotoCondensed, Arial, sans-serif",
|
67
71
|
variants: [
|
68
72
|
{ filename: "RobotoCondensed-Regular.ttf", format: "truetype", weight: 400 },
|
69
73
|
{ filename: "RobotoCondensed-Bold.ttf", format: "truetype", weight: 700 }
|
@@ -71,7 +75,7 @@ module DiscourseFonts
|
|
71
75
|
},
|
72
76
|
{
|
73
77
|
name: "SourceSansPro",
|
74
|
-
stack: "SourceSansPro,
|
78
|
+
stack: "SourceSansPro, Arial, sans-serif",
|
75
79
|
variants: [
|
76
80
|
{ filename: "SourceSansPro-Regular.ttf", format: "truetype", weight: 400 },
|
77
81
|
{ filename: "SourceSansPro-Bold.ttf", format: "truetype", weight: 700 }
|
@@ -79,7 +83,7 @@ module DiscourseFonts
|
|
79
83
|
},
|
80
84
|
{
|
81
85
|
name: "Oswald",
|
82
|
-
stack: "Oswald,
|
86
|
+
stack: "Oswald, Arial, sans-serif",
|
83
87
|
variants: [
|
84
88
|
{ filename: "Oswald-Regular.ttf", format: "truetype", weight: 400 },
|
85
89
|
{ filename: "Oswald-Bold.ttf", format: "truetype", weight: 700 }
|
@@ -87,7 +91,7 @@ module DiscourseFonts
|
|
87
91
|
},
|
88
92
|
{
|
89
93
|
name: "Raleway",
|
90
|
-
stack: "Raleway,
|
94
|
+
stack: "Raleway, Arial, sans-serif",
|
91
95
|
variants: [
|
92
96
|
{ filename: "Raleway-Regular.ttf", format: "truetype", weight: 400 },
|
93
97
|
{ filename: "Raleway-Bold.ttf", format: "truetype", weight: 700 }
|
@@ -95,7 +99,7 @@ module DiscourseFonts
|
|
95
99
|
},
|
96
100
|
{
|
97
101
|
name: "RobotoMono",
|
98
|
-
stack: "RobotoMono,
|
102
|
+
stack: "RobotoMono, Arial, sans-serif",
|
99
103
|
variants: [
|
100
104
|
{ filename: "RobotoMono-Regular.ttf", format: "truetype", weight: 400 },
|
101
105
|
{ filename: "RobotoMono-Bold.ttf", format: "truetype", weight: 700 }
|
@@ -103,7 +107,7 @@ module DiscourseFonts
|
|
103
107
|
},
|
104
108
|
{
|
105
109
|
name: "Poppins",
|
106
|
-
stack: "Poppins,
|
110
|
+
stack: "Poppins, Arial, sans-serif",
|
107
111
|
variants: [
|
108
112
|
{ filename: "Poppins-Regular.ttf", format: "truetype", weight: 400 },
|
109
113
|
{ filename: "Poppins-Bold.ttf", format: "truetype", weight: 700 }
|
@@ -111,7 +115,7 @@ module DiscourseFonts
|
|
111
115
|
},
|
112
116
|
{
|
113
117
|
name: "NotoSans",
|
114
|
-
stack: "NotoSans,
|
118
|
+
stack: "NotoSans, Arial, sans-serif",
|
115
119
|
variants: [
|
116
120
|
{ filename: "NotoSans-Regular.ttf", format: "truetype", weight: 400 },
|
117
121
|
{ filename: "NotoSans-Bold.ttf", format: "truetype", weight: 700 }
|
@@ -119,7 +123,7 @@ module DiscourseFonts
|
|
119
123
|
},
|
120
124
|
{
|
121
125
|
name: "RobotoSlab",
|
122
|
-
stack: "RobotoSlab,
|
126
|
+
stack: "RobotoSlab, Arial, sans-serif",
|
123
127
|
variants: [
|
124
128
|
{ filename: "RobotoSlab-Regular.ttf", format: "truetype", weight: 400 },
|
125
129
|
{ filename: "RobotoSlab-Bold.ttf", format: "truetype", weight: 700 }
|
@@ -127,7 +131,7 @@ module DiscourseFonts
|
|
127
131
|
},
|
128
132
|
{
|
129
133
|
name: "Merriweather",
|
130
|
-
stack: "Merriweather,
|
134
|
+
stack: "Merriweather, Arial, sans-serif",
|
131
135
|
variants: [
|
132
136
|
{ filename: "Merriweather-Regular.ttf", format: "truetype", weight: 400 },
|
133
137
|
{ filename: "Merriweather-Bold.ttf", format: "truetype", weight: 700 }
|
@@ -135,7 +139,7 @@ module DiscourseFonts
|
|
135
139
|
},
|
136
140
|
{
|
137
141
|
name: "Ubuntu",
|
138
|
-
stack: "Ubuntu,
|
142
|
+
stack: "Ubuntu, Arial, sans-serif",
|
139
143
|
variants: [
|
140
144
|
{ filename: "Ubuntu-Regular.ttf", format: "truetype", weight: 400 },
|
141
145
|
{ filename: "Ubuntu-Bold.ttf", format: "truetype", weight: 700 }
|
@@ -143,7 +147,7 @@ module DiscourseFonts
|
|
143
147
|
},
|
144
148
|
{
|
145
149
|
name: "PTSans",
|
146
|
-
stack: "PTSans,
|
150
|
+
stack: "PTSans, Arial, sans-serif",
|
147
151
|
variants: [
|
148
152
|
{ filename: "PTSans-Regular.ttf", format: "truetype", weight: 400 },
|
149
153
|
{ filename: "PTSans-Bold.ttf", format: "truetype", weight: 700 }
|
@@ -151,7 +155,7 @@ module DiscourseFonts
|
|
151
155
|
},
|
152
156
|
{
|
153
157
|
name: "PlayfairDisplay",
|
154
|
-
stack: "PlayfairDisplay,
|
158
|
+
stack: "PlayfairDisplay, Arial, sans-serif",
|
155
159
|
variants: [
|
156
160
|
{ filename: "PlayfairDisplay-Regular.ttf", format: "truetype", weight: 400 },
|
157
161
|
{ filename: "PlayfairDisplay-Bold.ttf", format: "truetype", weight: 700 }
|
@@ -159,7 +163,7 @@ module DiscourseFonts
|
|
159
163
|
},
|
160
164
|
{
|
161
165
|
name: "Nunito",
|
162
|
-
stack: "Nunito,
|
166
|
+
stack: "Nunito, Arial, sans-serif",
|
163
167
|
variants: [
|
164
168
|
{ filename: "Nunito-Regular.ttf", format: "truetype", weight: 400 },
|
165
169
|
{ filename: "Nunito-Bold.ttf", format: "truetype", weight: 700 }
|
@@ -167,7 +171,7 @@ module DiscourseFonts
|
|
167
171
|
},
|
168
172
|
{
|
169
173
|
name: "Lora",
|
170
|
-
stack: "Lora,
|
174
|
+
stack: "Lora, Arial, sans-serif",
|
171
175
|
variants: [
|
172
176
|
{ filename: "Lora-Regular.ttf", format: "truetype", weight: 400 },
|
173
177
|
{ filename: "Lora-Bold.ttf", format: "truetype", weight: 700 }
|
@@ -175,15 +179,19 @@ module DiscourseFonts
|
|
175
179
|
},
|
176
180
|
{
|
177
181
|
name: "Mukta",
|
178
|
-
stack: "Mukta,
|
182
|
+
stack: "Mukta, Arial, sans-serif",
|
179
183
|
variants: [
|
180
184
|
{ filename: "Mukta-Regular.ttf", format: "truetype", weight: 400 },
|
181
185
|
{ filename: "Mukta-Bold.ttf", format: "truetype", weight: 700 }
|
182
186
|
]
|
187
|
+
},
|
188
|
+
{
|
189
|
+
name: "Helvetica",
|
190
|
+
stack: "Helvetica, Arial, sans-serif"
|
183
191
|
}
|
184
192
|
].map do |font|
|
185
193
|
font[:key] = font[:name].underscore.tr(" ", "_")
|
186
194
|
font
|
187
195
|
end
|
188
196
|
end
|
189
|
-
end
|
197
|
+
end
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,15 +1,43 @@
|
|
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.8
|
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:
|
12
|
-
dependencies:
|
11
|
+
date: 2021-03-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '13.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '13.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-discourse
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.4.1
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.4.1
|
13
41
|
description: Bundle of fonts which can be used to customize the look of Discourse
|
14
42
|
email: bianca.nenciu@discourse.org
|
15
43
|
executables: []
|
@@ -29,6 +57,8 @@ files:
|
|
29
57
|
- vendor/assets/fonts/Mukta-Regular.ttf
|
30
58
|
- vendor/assets/fonts/NotoSans-Bold.ttf
|
31
59
|
- vendor/assets/fonts/NotoSans-Regular.ttf
|
60
|
+
- vendor/assets/fonts/NotoSansJP-Bold.otf
|
61
|
+
- vendor/assets/fonts/NotoSansJP-Regular.otf
|
32
62
|
- vendor/assets/fonts/Nunito-Bold.ttf
|
33
63
|
- vendor/assets/fonts/Nunito-Regular.ttf
|
34
64
|
- vendor/assets/fonts/OpenSans-Bold.ttf
|
@@ -61,7 +91,7 @@ homepage: https://github.com/discourse/discourse-fonts
|
|
61
91
|
licenses:
|
62
92
|
- MIT
|
63
93
|
metadata: {}
|
64
|
-
post_install_message:
|
94
|
+
post_install_message:
|
65
95
|
rdoc_options: []
|
66
96
|
require_paths:
|
67
97
|
- lib
|
@@ -69,15 +99,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
69
99
|
requirements:
|
70
100
|
- - ">="
|
71
101
|
- !ruby/object:Gem::Version
|
72
|
-
version:
|
102
|
+
version: 2.5.0
|
73
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
104
|
requirements:
|
75
105
|
- - ">="
|
76
106
|
- !ruby/object:Gem::Version
|
77
107
|
version: '0'
|
78
108
|
requirements: []
|
79
|
-
rubygems_version: 3.
|
80
|
-
signing_key:
|
109
|
+
rubygems_version: 3.1.4
|
110
|
+
signing_key:
|
81
111
|
specification_version: 4
|
82
112
|
summary: Bundle of customizable Discourse fonts
|
83
113
|
test_files: []
|