When Internet Explorer goes to use a fixed-width font, I want to override the default (Consolas or Courrier New, depending on Windows version) with my own font. Basically, whenever someone uses <tt> tags or asks for the fixed font. (I'd like to replace these with Anonymous Pro)

How can I do that?

link|improve this question

74% accept rate
feedback

2 Answers

up vote 1 down vote accepted

I believe the "Plain text font" under Tools > Internet Options > General > Fonts is the one you need to change.

Update:

To override a font defined by the web page you are viewing, create a CSS file and in it put:

tt, pre, code { font-family: "Anonymous Pro" !important; }

Then under Tools > Internet Options > General > Accessibility, select "Format documents using my style sheet", and provide the location of the CSS file you created above.

link|improve this answer
That changes the font for plain text, yes. I don't think it affects anything else though. – Billy ONeal Jun 5 '11 at 8:39
Just confirmed it also changes the <tt> tag contents. – Soumya Jun 5 '11 at 8:40
Still shows up as Consolas for me. I don't think this setting changes it because the default here is Courier New -- but the default fixed-width font in IE is Consolas, not Courier New. – Billy ONeal Jun 5 '11 at 8:46
1  
Do you have a sample page? As you can see here: i.imgur.com/PJpoe.png my fonts are changing fine. – Soumya Jun 5 '11 at 9:38
1  
See my new screenshot: i.imgur.com/AGiqb.png – Soumya Jul 20 '11 at 21:57
show 4 more comments
feedback

Its simple buddy. Just follow below steps and you will get your fav font in every page.

  • Go to Internet Option >> Accessibility (I hope you know where to access Internet Option)
  • Check below option

ignore font styles specified on webpages

or whichever you want.

  • Go to Internet Option >> Font >> Select desired font. >> ok Now you can see that font on the web page is changed....

:)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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