Answers for "font in html page laravel"

PHP
0

Custom Font Laravel

@font-face {
        src: url('/../fonts/custom-font.woff');
        font-family: "custom-font";
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-family: "custom-font";
}
Posted by: Guest on May-27-2021
0

font in html page laravel

// app.css in css folder in public folder used in app.blade
// app.blade is the parent and master page for all of your another pages

// upload font in public/fonts
// then add this to app.css or in main.css

     @font-face {
        src: url('/../fonts/custom-font.woff');
        font-family: "custom-font";
    }

// then use every where you want like this

    
    h1, h2, h3, h4, h5, h6 {
        font-family: "custom-font";
}


// or 

@font-face {
    font-family: 'iranyekan-regular';
    font-style: normal;
    font-weight: normal;
    src: url('../../../assets/fonts/IranYekan/Normal/eot/iranyekanwebregularfanum.eot');
    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');
}
Posted by: Guest on August-18-2021

Code answers related to "font in html page laravel"

Browse Popular Code Answers by Language