Skip to content

Commit ef08d2d

Browse files
authored
Merge pull request #65 from Hidden-Warden/64-bug-font-isnt-working
🐛 Correctif sur les fonts
2 parents 6d381c2 + 1e4e4b4 commit ef08d2d

File tree

1 file changed

+72
-36
lines changed

1 file changed

+72
-36
lines changed

static/css/fonts.css

Lines changed: 72 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,125 +1,161 @@
11
@font-face {
2-
font-family: "Poppins";
3-
src: url(fonts/Poppins-Thin.ttf);
2+
font-family: 'Poppins';
3+
src:
4+
local('Poppins Thin'),
5+
url('/fonts/Poppins-Thin.ttf');
46
font-weight: 100;
57
font-style: normal;
68
}
79

810
@font-face {
9-
font-family: "Poppins";
10-
src: url(fonts/Poppins-ThinItalic.ttf);
11+
font-family: 'Poppins';
12+
src:
13+
local('Poppins Thin Italic'),
14+
url('/fonts/Poppins-ThinItalic.ttf');
1115
font-weight: 100;
1216
font-style: italic;
1317
}
1418

1519
@font-face {
16-
font-family: "Poppins";
17-
src: url(fonts/Poppins-ExtraLight.ttf);
20+
font-family: 'Poppins';
21+
src:
22+
local('Poppins ExtraLight'),
23+
url('/fonts/Poppins-ExtraLight.ttf');
1824
font-weight: 200;
1925
font-style: normal;
2026
}
2127

2228
@font-face {
23-
font-family: "Poppins";
24-
src: url(fonts/Poppins-ExtraLightItalic.ttf);
29+
font-family: 'Poppins';
30+
src:
31+
local('Poppins ExtraLight Italic'),
32+
url('/fonts/Poppins-ExtraLightItalic.ttf');
2533
font-weight: 200;
2634
font-style: italic;
2735
}
2836

2937
@font-face {
30-
font-family: "Poppins";
31-
src: url(fonts/Poppins-Light.ttf);
38+
font-family: 'Poppins';
39+
src:
40+
local('Poppins Light'),
41+
url('/fonts/Poppins-Light.ttf');
3242
font-weight: 300;
3343
font-style: normal;
3444
}
3545

3646
@font-face {
37-
font-family: "Poppins";
38-
src: url(fonts/Poppins-LightItalic.ttf);
47+
font-family: 'Poppins';
48+
src:
49+
local('Poppins Light Italic'),
50+
url('/fonts/Poppins-LightItalic.ttf');
3951
font-weight: 300;
4052
font-style: italic;
4153
}
4254

4355
@font-face {
44-
font-family: "Poppins";
45-
src: url(fonts/Poppins-Regular.ttf);
56+
font-family: 'Poppins';
57+
src:
58+
local('Poppins Regular'),
59+
url('/fonts/Poppins-Regular.ttf');
4660
font-weight: 400;
4761
font-style: normal;
4862
}
4963

5064
@font-face {
51-
font-family: "Poppins";
52-
src: url(fonts/Poppins-Italic.ttf);
65+
font-family: 'Poppins';
66+
src:
67+
local('Poppins Italic'),
68+
url('/fonts/Poppins-Italic.ttf');
5369
font-weight: 400;
5470
font-style: italic;
5571
}
5672

5773
@font-face {
58-
font-family: "Poppins";
59-
src: url(fonts/Poppins-Medium.ttf);
74+
font-family: 'Poppins';
75+
src:
76+
local('Poppins Medium'),
77+
url('/fonts/Poppins-Medium.ttf');
6078
font-weight: 500;
6179
font-style: normal;
6280
}
6381

6482
@font-face {
65-
font-family: "Poppins";
66-
src: url(fonts/Poppins-MediumItalic.ttf);
83+
font-family: 'Poppins';
84+
src:
85+
local('Poppins Medium Italic'),
86+
url('/fonts/Poppins-MediumItalic.ttf');
6787
font-weight: 500;
6888
font-style: italic;
6989
}
7090

7191
@font-face {
72-
font-family: "Poppins";
73-
src: url(fonts/Poppins-SemiBold.ttf);
92+
font-family: 'Poppins';
93+
src:
94+
local('Poppins SemiBold'),
95+
url('/fonts/Poppins-SemiBold.ttf');
7496
font-weight: 600;
7597
font-style: normal;
7698
}
7799

78100
@font-face {
79-
font-family: "Poppins";
80-
src: url(fonts/Poppins-SemiBoldItalic.ttf);
101+
font-family: 'Poppins';
102+
src:
103+
local('Poppins SemiBold Italic'),
104+
url('/fonts/Poppins-SemiBoldItalic.ttf');
81105
font-weight: 600;
82106
font-style: italic;
83107
}
84108

85109
@font-face {
86-
font-family: "Poppins";
87-
src: url(fonts/Poppins-Bold.ttf);
110+
font-family: 'Poppins';
111+
src:
112+
local('Poppins Bold'),
113+
url('/fonts/Poppins-Bold.ttf');
88114
font-weight: 700;
89115
font-style: normal;
90116
}
91117

92118
@font-face {
93-
font-family: "Poppins";
94-
src: url(fonts/Poppins-BoldItalic.ttf);
119+
font-family: 'Poppins';
120+
src:
121+
local('Poppins Bold Italic'),
122+
url('/fonts/Poppins-BoldItalic.ttf');
95123
font-weight: 700;
96124
font-style: italic;
97125
}
98126

99127
@font-face {
100-
font-family: "Poppins";
101-
src: url(fonts/Poppins-ExtraBold.ttf);
128+
font-family: 'Poppins';
129+
src:
130+
local('Poppins ExtraBold'),
131+
url('/fonts/Poppins-ExtraBold.ttf');
102132
font-weight: 800;
103133
font-style: normal;
104134
}
105135

106136
@font-face {
107-
font-family: "Poppins";
108-
src: url(fonts/Poppins-ExtraBoldItalic.ttf);
137+
font-family: 'Poppins';
138+
src:
139+
local('Poppins ExtraBold Italic'),
140+
url('/fonts/Poppins-ExtraBoldItalic.ttf');
109141
font-weight: 800;
110142
font-style: italic;
111143
}
112144

113145
@font-face {
114-
font-family: "Poppins";
115-
src: url(fonts/Poppins-Black.ttf);
146+
font-family: 'Poppins';
147+
src:
148+
local('Poppins Black'),
149+
url('/fonts/Poppins-Black.ttf');
116150
font-weight: 900;
117151
font-style: normal;
118152
}
119153

120154
@font-face {
121-
font-family: "Poppins";
122-
src: url(fonts/Poppins-BlackItalic.ttf);
155+
font-family: 'Poppins';
156+
src:
157+
local('Poppins Black Italic'),
158+
url('/fonts/Poppins-BlackItalic.ttf');
123159
font-weight: 900;
124160
font-style: italic;
125161
}

0 commit comments

Comments
 (0)