From 548ba29c1738582ff39f1835e715cc933b8bfd20 Mon Sep 17 00:00:00 2001 From: culler Date: Mon, 20 Jul 2020 17:32:31 +0000 Subject: Apple changed the metrics for Courier New in Big Sur, causing many textWind tests to fail. --- tests/textWind.test | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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] -- cgit v0.12