Changing the Theme's default Font Changing the Theme's default Font
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Changing the Theme's default Font

Started by iorkara, February 28, 2008, 07:32:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

iorkara

-Changing the Theme's default Font

Hi everyone  :)
My Question/Problem is. How do I change the Theme's default Font type (I am using the Hardwired Theme).
However, is it Possible to have the actual Font File on my Server and have it loaded from there when a User/Visitor loads up my Gallery. So this way there are no Problems if they do Not have the actual Font File on their PC/Mac.

I did a Search. However I did not find a Topic where someone was trying to achieve this.
Thanks for taking time to read my Post and anyone who Helps, it will be very much Appreciated.
Thank you.

François Keller

QuoteHow do I change the Theme's default Font type
in the style.css file from your theme
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

iorkara

Ok I just had a look at my style.css file.

So basically it's this line to change the font correct?:
Quotefont-family : Verdana, Arial, Helvetica, sans-serif;

However, what if the Visitor does not have the Font File on their PC/Mac? Is there a Code that I can use make the Font Load Up from my Server? So if the Visitor does not have the Font on their PC/Mac, it's ok because it's get Loaded Up from my Server.

Joachim Müller

That's a bad idea entirely. In theory, it's possible to make the browser load a font, but this doesn't work very well. I would never download an exotic font to my client, cluttering it that way, but would leave immediately the site that is trying to force me to perform such crap. Don't rely on exotic fonts. Your site won't get prettier if you use an exotic font. Use a fallback strategy instead. This is not a coppermine issue, but a matter of HTML and CSS. Google is your friend - read up on fonts, e.g. on http://www.w3schools.com/css/pr_font_font-family.asp