Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Change default font to a custom font in mybb?

Wondering if anyone happens to know how to change the default font in a mybb theme to a custom font?

The part i have highlighted in this image below is the part of where my font is forum wise.
Changed the color of it, that's how i know how.
Don't know how to actually add a custom font in mybb though, and how to switch it out with the current default.
[img]http://speedcap.net/img/55b14a273abf4db5ec4e676c9d27c0a1/d706923c.png[/img]


Any help would be appreciated!

Still need help with this!
Would be appreciated!
[Image: yZ3zVqx.gif]
Change the font to what ever name you want, e.g "impact" or "arial". If you want to install a custom font, you can use the @font-face style.

Code
@font-face {
    /*For most browsers*  
    font-family:newfont;
    src:url('myfont.ttf');
    font-weight:bold;
}
@font-face {
    /*For IE*/
    font-family:newfontie;
    src:url('myfont.eot');
    font-weight:bold;
}
p {
    font-family:newfont, newfontie, arial;
}

As you can see from this, IE uses the EOT file format, where as most other browsers use TTF. You put both of these in the texts style, that was if one doesn't work, it will go to the next (for browser compatibility) and if neither work, then it will use your 3rd choice (in this case, Arial).

EDIT: For this to work, you will have to put the custom fonts in the same folder as your css file. You will also need to make sure you have the eot and ttf versions of the font, you can find converters online for this if you need it.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Wordpress] by skullNov 30, 2019 05:30 AM 1 125 Nov 30, 2019 05:30 AM
Last Post: Linux X
by phuckboyMar 2, 2018 07:41 AM 0 255 Mar 2, 2018 07:41 AM
Last Post: phuckboy
by WarrioяFeb 1, 2017 10:54 AM 3 144 Feb 1, 2017 10:54 AM
Last Post: Rolex™