Code appearing badly in IE9?

Voice your opinions, concerns and suggestions on how to make the Transport Tycoon Forums better.

Moderator: General Forums Moderators

Post Reply
Brumi
President
President
Posts: 920
Joined: 18 Jul 2009 17:54

Code appearing badly in IE9?

Post by Brumi »

I've upgraded to Windows 7 recently, and for some reason code parts in the posts are quite ugly using IE9.
code.png
code.png (9.3 KiB) Viewed 2965 times
Am I doing something wrong or is it a compatibility issue?
User avatar
Jacko
Tycoon
Tycoon
Posts: 2386
Joined: 13 May 2011 17:11
Location: In an alternate Universe

Re: Code appearing badly in IE9?

Post by Jacko »

why are you using IE in the first place?
Firefox is where its at :D

But seriously I don't know, best to look in the settings n stuff
"O2 is for noobs, real people breath O3" ~ said sometime by Me

All comments from me may or may not be true and do not take them word-for-word

Feel Free to join me and some other people in The Nations Game - its actually quite fun.

1000th Post at Wed Feb 08, 2012 8:43 am
2000th post at Sun Apr 14, 2013 10:22 am
User avatar
orudge
Administrator
Administrator
Posts: 25138
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Re: Code appearing badly in IE9?

Post by orudge »

How odd. Code blocks are designed to use the following fonts/font families: Courier, 'Courier New', sans-serif;

Do you have something overriding your fonts, perhaps? Have you somehow deleted Courier and Courier New, and your browser is picking what looks like an East Asian font used for Western text?
Brumi
President
President
Posts: 920
Joined: 18 Jul 2009 17:54

Re: Code appearing badly in IE9?

Post by Brumi »

I would never delete Courier New, it's my favourite font :D

Code blocks appear OK using the prosilver or subsilver theme, and they also appear correctly on some other phpBB-based forums I checked. They also appear perfectly using Opera.

After some googling, I found this:
http://social.msdn.microsoft.com/Forums ... 2e8b8c1c1/
It seems that IE9 has a problem.
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Code appearing badly in IE9?

Post by FooBar »

orudge wrote:Courier, 'Courier New', sans-serif;
I'd swap the first two. Courier New is the preferred font if available, as on Windows it's a true type font, while plain Courier is one of these antique things only available in certain sizes, rendered badly in other sizes that are not predefined.
Auge
Director
Director
Posts: 636
Joined: 23 Oct 2006 02:07
Location: Berlin

Re: Code appearing badly in IE9?

Post by Auge »

Hello

Code: Select all

font-family: Courier, 'Courier New', sans-serif;
The matching family for the fonts Courier and Courier New is monospace instead sans-serif. Last one is shown on the screenshot. And, as FooBar said, Courier is outdated (to say it in a polite way ;-) ).

Code: Select all

font-family: 'Courier New', {maybe}Courier,{/maybe} monospace;
Tschö, Auge
User avatar
orudge
Administrator
Administrator
Posts: 25138
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Re: Code appearing badly in IE9?

Post by orudge »

Well, quite. I'm not sure why sans-serif was chosen, it seems to have been a phpBB decision many years ago. I'll make the changes when I have some time(!)
Post Reply

Return to “Forum Suggestions and Feedback”

Who is online

Users browsing this forum: No registered users and 13 guests