SMF Support > SMF 2.0.x Support

How to change default font type

(1/2) > >>

bokiromanista:
Hello I use smf 2.0.2  and im intersting is possible to change default theme  font type i want to change theme font to something like  this  http://www.fontsquirrel.com/fonts/bebas-neue


is that possible ???

K@:
It's possible, sure. Just edit index.css.

But, unless your members all install that font on their computers, they'll just see the default font.

bokiromanista:
I think is possible to write code in css who load that font from my server

K@:
You may be right.

Not something that I have experience of, though, I'm afraid. :(

bokiromanista:
Im found solution and it working :D

in index.css file  on beginning write this


--- Code: ---@font-face {
    font-family: 'MyFont';
   
    src:url('http://www.mysite.com/fonts/MyFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;

}
--- End code ---


And add my font name on line where listed primar fonts

{
   font: 100%/170% MyFont, Arial, Helvetica, sans-serif;
   margin: 0;
   padding: 0;
   background: #1f1f1f;
}

This work well

Navigation

[0] Message Index

[#] Next page

Go to full version