Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Museo fonts?

Tags:

css

fonts

I've tried to use Museo fonts in my sites. But i don't know how to use this in a site.

If it is any google fonts like 'Roboto', then i can use by below code:

font-family: 'Roboto', sans-serif;

Now how to use museo fonts?

May i use just 'Museo Slap' or need to use 'Museo Slap', sans-serif;

like image 742
Guru Avatar asked Nov 23 '25 08:11

Guru


1 Answers

Either this process can be used to use text in a php file without having to put it in the css

<style type="text/css">
@font-face {
    font-family: "My Custom Font";
    src: url(http://www.example.org/mycustomfont.ttf) format("truetype");
}
p.customfont { 
    font-family: "My Custom Font", Verdana, Tahoma;
}
</style>
<p class="customfont">Hello world!</p>

This is valid only for TFF or WOFF formats of font. replace src with the url of the font on your server. replace "My custom font" and "customfont" with the name of the font you want.

Or you can alternatively add the font to style.css with the code:

.font-face {
        font-family: "My Custom Font";
        src: url(http://www.example.org/mycustomfont.ttf) format("truetype");
    }
like image 150
Abhas Avatar answered Nov 24 '25 22:11

Abhas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!