Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

This is probably a duplicate. I can't imagine I'm the first person to notice this.

It seems that Safari 6 has removed the appearance tab from the preferences, and with it, the ability to change the default fonts.

How do I change the default fonts for Safari 6?

share|improve this question

4 Answers 4

up vote -1 down vote accepted

Just get Tinker Tool for free. It will let you change the fonts and font size for Safari in OS X Mavericks.

share|improve this answer
    
The question is about Safari 6 on Mountain Lion actually. –  patrix Oct 30 '13 at 6:01
    
@patrix so what? Now that Mavericks is out, I care about how to do it in there. –  asmeurer Oct 30 '13 at 16:24
    
The way to accomplish this could have changed with Safari 7, old methods might not even work anymore. So asking a new question would probably be more helpful here. –  patrix Oct 30 '13 at 16:54
    
Whatever. Trying to mess with a custom css never worked for me. Tinkertool does. I'm accepting this answer. –  asmeurer Oct 31 '13 at 18:30

You can still use defaults:

defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2StandardFontFamily Georgia
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DefaultFontSize 16
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2FixedFontFamily Menlo
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DefaultFixedFontSize 14

Another option is to set a CSS file like this as as the default style sheet in the advanced preferences:

body {
  font: 16px Georgia;
}
pre, code, tt {
  font: 14px Menlo;
}

Both options have precedence over the default stylesheet but not over styles specified by websites. So like the preferences in Safari 5 and earlier, they mostly apply to pages that would normally use 15px Times or 13px Courier.

share|improve this answer
    
This doesn't seem to work. –  asmeurer Aug 13 '12 at 21:19
    
If you add !important before the semi-colon, it will work. However, that will force all websites to use your specifications. Will screw up sites that use special fonts to display special glyphs (e.g. github.com). –  imanuelc Jun 15 '13 at 0:30
    
Well, just changing the bodyfont doesn't work well. I'd suggest applying the font modification to body, p, span, a at least. –  pabuisson Jun 25 '13 at 8:36

Indeed, this is trivially easy with a simple style sheet that overrides the default "body" font. All you need is all of three lines long:

body { font: 12px "Lucida Grande"; }

share|improve this answer
3  
And where do you put said style sheet? How do you get Safari to always load it? –  Daniel Lawson Jul 30 '12 at 18:43
    
What do I use to change the monospace font? –  asmeurer Jul 30 '12 at 21:32
    
Copy that line of CSS; use a text editor to put it in an otherwise empty text file, and save that text file to your local hard drive with a filename like, say, default.css. Then go to Safari > Preferences, select the Advanced tab, and in the Style sheet dropdown, select Other. Navigate to your default.css file, and Safari will start using your new CSS as its default. –  Jed Hartman Jul 31 '12 at 6:26

Serenity Caldwell wrote an article on Macworld when Mountain Lion was first released as a dev preview:

Safari no longer offers an option to set default fonts and sizes (though you can upload a style sheet or force the browser not to show font sizes smaller than a certain number)

You can do this via an extension called User CSS. Pretty simple, add your custom CSS and it will override the styles.

There is also an Apple discussion thread about this, but nothing important has come of it so far. One thing that was mentioned was using HelveticaTheWorld, which changes all the fonts to Helvetica. Not terribly useful unless you want Helvetica everywhere... Another extension mentioned is Google Fonts in Safari. It allows you to pick from the Google Fonts library.

As of right now, there is no other way to change the fonts in Safari. I would suggest you submit Apple feedback to see if you can get this added back in.

share|improve this answer
1  
Isn't custom CSS already supported without an extension? –  asmeurer Jul 30 '12 at 0:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.