Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

smf 1.1.14 - how to change default font

Aloittaja matt scarlett, elokuu 17, 2011, 04:08:01 AP

« edellinen - seuraava »

matt scarlett

I would like to change the default font to 'Times' how do I do that?

kat

If you look at your theme's style.css file, you'll see various font settings, there.

For example:

/* By default (td, body..) use verdana in black. */
body, td, th , tr
{
color: #000000;
font-size: big;
font-family: verdana, sans-serif;
}


Be aware that your members will need the appropriate fonts that you use installed on their computers, though.

MrPhil

Agreed. Be aware that a given font may be common on Windows systems but not on Macs, or vice-versa. In the example given, Verdana is the primary font to be used, but isn't necessarily available on all systems. Therefore, a generic "backup" font of "sans-serif" is given last in the list. If you want "Times" (times-roman?) to be your primary choice, and maybe another similar font to be your second choice (one for Windows, one for Mac), you would specify "serif" as the last choice in case the first two aren't available. Page designers get themselves into trouble every day by assuming that the fonts available to them are available to everyone, and fail to provide a generic fallback (serif, sans-serif, etc.).

matt scarlett

OK I'll leave it for now. Thanks for your help once again.

kat

Be aware, also, that some of us set our own style sheets for some sites, which can override whatever you set.

I dunno how easy that is, with other browsers. But, it's a doddle with Opera. ;)

Advertisement: