Author markroseman
Recipients kbk, markroseman, roger.serwy, terry.reedy
Date 2015-07-29.00:17:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1438129028.22.0.104228147207.issue24745@psf.upfronthosting.co.za>
In-reply-to
Content
By default, IDLE chooses courier for the text editor font.

As you'll see from the attached screenshot, while this looks ok on Windows, it's inconsistent with the standard fixed width fonts on Linux and OS X, and borders on unreadable particularly on the latter. 

While this can be changed via the configuration dialog (the 'fixed' versions in the screenshots do just that), this is one of the things that really jumps out at you the first time you run IDLE, and not in a good way.

Tk defines a font named 'TkFixedFont', which we should take advantage of instead of hardcoding courier; details of the font can be retrieved via

    tkinter.font.nametofont('TkFixedFont').actual()

Note there's a bit of an overlap here with #<20580>, but suggests that there may be some cases where determining defaults programmatically rather than hardcoding multiple defaults may be appropriate.
History
Date User Action Args
2015-07-29 00:17:11markrosemansetrecipients: + markroseman, terry.reedy, kbk, roger.serwy
2015-07-29 00:17:08markrosemansetmessageid: <1438129028.22.0.104228147207.issue24745@psf.upfronthosting.co.za>
2015-07-29 00:17:07markrosemanlinkissue24745 messages
2015-07-29 00:17:05markrosemancreate