mirror of https://github.com/python/cpython
Merge with 3.5
This commit is contained in:
commit
9fa149dd24
|
@ -720,7 +720,7 @@ class IdleConf:
|
|||
actualFont = Font.actual(f)
|
||||
family = actualFont['family']
|
||||
size = actualFont['size']
|
||||
if size < 0:
|
||||
if size <= 0:
|
||||
size = 10 # if font in pixels, ignore actual size
|
||||
bold = actualFont['weight']=='bold'
|
||||
return (family, size, 'bold' if bold else 'normal')
|
||||
|
|
Loading…
Reference in New Issue