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
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
196
|
# File 'lib/discourse_fonts.rb', line 10
def self.fonts
@fonts ||= [
{
name: "Arial",
stack: "Arial, sans-serif",
},
{
name: "System",
stack: "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif",
},
{
name: "Open Sans",
stack: "Open Sans, Arial, sans-serif",
variants: [
{ filename: "OpenSans-Regular.ttf", format: "truetype", weight: 400 },
{ filename: "OpenSans-Bold.ttf", format: "truetype", weight: 700 }
]
},
{
name: "Oxanium",
stack: "Oxanium, Arial, sans-serif",
variants: [
{ filename: "oxanium-regular.woff2", format: "woff2", weight: 400 },
{ filename: "oxanium-bold.woff2", format: "woff2", weight: 700 }
]
},
{
name: "Roboto",
stack: "Roboto, Arial, sans-serif",
variants: [
{ filename: "Roboto-Regular.ttf", format: "truetype", weight: 400 },
{ filename: "Roboto-Bold.ttf", format: "truetype", weight: 700 }
]
},
{
name: "Lato",
stack: "Lato, Arial, sans-serif",
variants: [
{ filename: "Lato-Regular.ttf", format: "truetype", weight: 400 },
{ filename: "Lato-Bold.ttf", format: "truetype", weight: 700 }
]
},
{
name: "NotoSansJP",
stack: "NotoSansJP, Arial, sans-serif",
variants: [
{ filename: "NotoSansJP-Regular.otf", weight: 400 },
{ filename: "NotoSansJP-Bold.otf", weight: 700 }
]
},
{
name: "Montserrat",
stack: "Montserrat, Arial, sans-serif",
variants: [
{ filename: "Montserrat-Regular.ttf", format: "truetype", weight: 400 },
{ filename: "Montserrat-Bold.ttf", format: "truetype", weight: 700 }
]
},
{
name: "RobotoCondensed",
stack: "RobotoCondensed, Arial, sans-serif",
variants: [
{ filename: "RobotoCondensed-Regular.ttf", format: "truetype", weight: 400 },
{ filename: "RobotoCondensed-Bold.ttf", format: "truetype", weight: 700 }
]
},
{
name: "SourceSansPro",
stack: "SourceSansPro, Arial, sans-serif",
variants: [
{ filename: "SourceSansPro-Regular.ttf", format: "truetype", weight: 400 },
{ filename: "SourceSansPro-Bold.ttf", format: "truetype", weight: 700 }
]
},
{
name: "Oswald",
stack: "Oswald, Arial, sans-serif",
variants: [
{ filename: "Oswald-Regular.ttf", format: "truetype", weight: 400 },
{ filename: "Oswald-Bold.ttf", format: "truetype", weight: 700 }
]
},
{
name: "Raleway",
stack: "Raleway, Arial, sans-serif",
variants: [
{ filename: "Raleway-Regular.ttf", format: "truetype", weight: 400 },
{ filename: "Raleway-Bold.ttf", format: "truetype", weight: 700 }
]
},
{
name: "RobotoMono",
stack: "RobotoMono, Arial, sans-serif",
variants: [
{ filename: "RobotoMono-Regular.ttf", format: "truetype", weight: 400 },
{ filename: "RobotoMono-Bold.ttf", format: "truetype", weight: 700 }
]
},
{
name: "Poppins",
stack: "Poppins, Arial, sans-serif",
variants: [
{ filename: "Poppins-Regular.ttf", format: "truetype", weight: 400 },
{ filename: "Poppins-Bold.ttf", format: "truetype", weight: 700 }
]
},
{
name: "NotoSans",
stack: "NotoSans, Arial, sans-serif",
variants: [
{ filename: "NotoSans-Regular.ttf", format: "truetype", weight: 400 },
{ filename: "NotoSans-Bold.ttf", format: "truetype", weight: 700 }
]
},
{
name: "RobotoSlab",
stack: "RobotoSlab, Arial, sans-serif",
variants: [
{ filename: "RobotoSlab-Regular.ttf", format: "truetype", weight: 400 },
{ filename: "RobotoSlab-Bold.ttf", format: "truetype", weight: 700 }
]
},
{
name: "Merriweather",
stack: "Merriweather, Arial, sans-serif",
variants: [
{ filename: "Merriweather-Regular.ttf", format: "truetype", weight: 400 },
{ filename: "Merriweather-Bold.ttf", format: "truetype", weight: 700 }
]
},
{
name: "Ubuntu",
stack: "Ubuntu, Arial, sans-serif",
variants: [
{ filename: "Ubuntu-Regular.ttf", format: "truetype", weight: 400 },
{ filename: "Ubuntu-Bold.ttf", format: "truetype", weight: 700 }
]
},
{
name: "PTSans",
stack: "PTSans, Arial, sans-serif",
variants: [
{ filename: "PTSans-Regular.ttf", format: "truetype", weight: 400 },
{ filename: "PTSans-Bold.ttf", format: "truetype", weight: 700 }
]
},
{
name: "PlayfairDisplay",
stack: "PlayfairDisplay, Arial, sans-serif",
variants: [
{ filename: "PlayfairDisplay-Regular.ttf", format: "truetype", weight: 400 },
{ filename: "PlayfairDisplay-Bold.ttf", format: "truetype", weight: 700 }
]
},
{
name: "Nunito",
stack: "Nunito, Arial, sans-serif",
variants: [
{ filename: "Nunito-Regular.ttf", format: "truetype", weight: 400 },
{ filename: "Nunito-Bold.ttf", format: "truetype", weight: 700 }
]
},
{
name: "Lora",
stack: "Lora, Arial, sans-serif",
variants: [
{ filename: "Lora-Regular.ttf", format: "truetype", weight: 400 },
{ filename: "Lora-Bold.ttf", format: "truetype", weight: 700 }
]
},
{
name: "Mukta",
stack: "Mukta, Arial, sans-serif",
variants: [
{ filename: "Mukta-Regular.ttf", format: "truetype", weight: 400 },
{ filename: "Mukta-Bold.ttf", format: "truetype", weight: 700 }
]
},
{
name: "Helvetica",
stack: "Helvetica, Arial, sans-serif"
}
].map do |font|
font[:key] = font[:name].underscore.tr(" ", "_")
font
end
end
|