Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Safari: Use my fonts?

Safari: Use my fonts?
Thread Tools
Senior User
Join Date: Sep 2000
Location: Shallow Alto, CA
Status: Offline
Reply With Quote
Sep 18, 2003, 06:23 PM
 
I didn't find an answer to this after a quick search of this forum, so here it goes.

Is there a way to force Safari to use a font of choice? Even better, is there a way to force Safari to substitute one font for another?

Often sites use Times New Roman, which is hideous IMO, and I'd like to force those fonts to be Lucida or Verdana.

Ideas?
     
Mac Elite
Join Date: Dec 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Sep 18, 2003, 06:39 PM
 
Have you tried the the font setting in Safari preferences?
You can also create a style sheet and force Safari to use that for pages. That is also accessible from the Preferences window.


t
     
foamy  (op)
Senior User
Join Date: Sep 2000
Location: Shallow Alto, CA
Status: Offline
Reply With Quote
Sep 19, 2003, 09:59 AM
 
Yeah, I tried the fonts panel in the prefs and I have the fonts I like selected, however, if the page specifies a font then Safari uses that font. In Camino, for example, there is a button that basically says "Use only the fonts I've selected". It works, but Camino has been so crash happy lately that I'm starting to use Safari more and more.

I'm interested in the CSS method of overriding a page's font settings (if this is possible), but I don't know a whole lot of CSS, so if anyone has any suggestions for altering all instances of Times New Roman, or just forcing the Serif fonts to be something like Lucida Grande, I would appreciate it very much.

Espumoso
     
Mac Elite
Join Date: Dec 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Sep 19, 2003, 11:48 AM
 
Open up TextEdit, or any other text editor program. Paste the following lines in it:

body {
font-size: 9px;
font-family: Lucida Grande;
}

Then save the file under some name, but give it '.css' extension. For example, 'mystyle.css'.

Then in Safaeri Preferences select the Advanced panel, and from the pulldown menu select Other...

Locate your style sheet that you have created above. Restart Safari and you are done.
I just gave it a try and it seems that it will not work with pages that use their own style sheet, but will work with ones without.

You can edit the font to whatever else you want to use, and play around with the font size to make it better for your self.

Good luck,


t

EDIT: OOps, sorry for putting Times in there...I fixed it now.
(Last edited by t_hah; Sep 19, 2003 at 03:54 PM. )
     
Mac Elite
Join Date: Oct 2000
Status: Offline
Reply With Quote
Sep 19, 2003, 02:10 PM
 
Originally posted by t_hah:
Open up TextEdit, or any other text editor program. Paste the following lines in it:

body {
font-size: 9px;
font-family: times;
}

Then save the file under some name, but give it '.css' extension. For example, 'mystyle.css'.

Then in Safaeri Preferences select the Advanced panel, and from the pulldown menu select Other...

Locate your style sheet that you have created above. Restart Safari and you are done.
I just gave it a try and it seems that it will not work with pages that use their own style sheet, but will work with ones without.

Good luck,


t
Actually it does work with sites with stylesheets for me. He doesn't want to use Times, he wants to replace all instances of Times or any serifs with Lucida Grande or Verdana.

Anyways, if you want everything to become Lucida Grande you can just use this line in a .css file as t_hah outlined above:

* { font-family: "Lucida Grande" }

It isn't really possible to JUST change fonts to Lucida Grande if they are serif unless the site uses font tags then you can do this:

font[face~="serif"],font[face~="Times New Roman"],font[face~="Times"],font[face~="Georgia"] { font-family: "Lucida Grande" }

But that will only work on some websites, so I'd suggest against it. The line I gave earlier should work well though. Good luck.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:32 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2