diff options
author | culler <culler> | 2020-07-20 17:32:31 (GMT) |
---|---|---|
committer | culler <culler> | 2020-07-20 17:32:31 (GMT) |
commit | 548ba29c1738582ff39f1835e715cc933b8bfd20 (patch) | |
tree | d5ed712ef0988e197af1a2df2432463afde0b100 /tests | |
parent | 6d8343ece1ccbd1bfbc979f60decf022a80e278d (diff) | |
download | tk-548ba29c1738582ff39f1835e715cc933b8bfd20.zip tk-548ba29c1738582ff39f1835e715cc933b8bfd20.tar.gz tk-548ba29c1738582ff39f1835e715cc933b8bfd20.tar.bz2 |
Apple changed the metrics for Courier New in Big Sur, causing many textWind tests to fail.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/textWind.test | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/textWind.test b/tests/textWind.test index f2daaca..b453feb 100644 --- a/tests/textWind.test +++ b/tests/textWind.test @@ -13,7 +13,11 @@ tcltest::loadTestedCommands deleteWindows -set fixedFont {"Courier New" -12} +if {[tk windowingsystem] eq "aqua"} { + set fixedFont {"Courier" -12} +} else { + set fixedFont {"Courier New" -12} +} set fixedHeight [font metrics $fixedFont -linespace] set fixedWidth [font measure $fixedFont m] set fixedAscent [font metrics $fixedFont -ascent] |