Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: matt scarlett - elokuu 17, 2011, 04:08:01 AP

Otsikko: smf 1.1.14 - how to change default font
Kirjoitti: matt scarlett - elokuu 17, 2011, 04:08:01 AP
I would like to change the default font to 'Times' how do I do that?
Otsikko: Re: smf 1.1.14 - how to change default font
Kirjoitti: kat - elokuu 17, 2011, 06:15:04 AP
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.
Otsikko: Re: smf 1.1.14 - how to change default font
Kirjoitti: MrPhil - elokuu 17, 2011, 10:34:16 IP
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.).
Otsikko: Re: smf 1.1.14 - how to change default font
Kirjoitti: matt scarlett - elokuu 18, 2011, 06:10:33 AP
OK I'll leave it for now. Thanks for your help once again.
Otsikko: Re: smf 1.1.14 - how to change default font
Kirjoitti: kat - elokuu 18, 2011, 06:53:00 AP
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. ;)