1 @font-face {
2 src: url('/../fonts/custom-font.woff');
3 font-family: "custom-font";
4 }
5
6 h1, h2, h3, h4, h5, h6 {
7 font-family: "custom-font";
8}
9
1// app.css in css folder in public folder used in app.blade
2// app.blade is the parent and master page for all of your another pages
3
4// upload font in public/fonts
5// then add this to app.css or in main.css
6
7 @font-face {
8 src: url('/../fonts/custom-font.woff');
9 font-family: "custom-font";
10 }
11
12// then use every where you want like this
13
14
15 h1, h2, h3, h4, h5, h6 {
16 font-family: "custom-font";
17}
18
19
20// or
21
22@font-face {
23 font-family: 'iranyekan-regular';
24 font-style: normal;
25 font-weight: normal;
26 src: url('../../../assets/fonts/IranYekan/Normal/eot/iranyekanwebregularfanum.eot');
27 src: url('../../../assets/fonts/IranYekan/Normal/woff/iranyekanwebregularfanum.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/ url('../../../assets/fonts/IranYekan/Normal/ttf/iranyekanwebregularfanum.ttf') format('truetype');
28}