summaryrefslogtreecommitdiffstats
path: root/tests/textDisp.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2022-12-04 14:32:08 (GMT)
committerfvogel <fvogelnew1@free.fr>2022-12-04 14:32:08 (GMT)
commit8ebd5984ac2b766a6e4df0cb7efa262959ae7349 (patch)
treeeeba561002a9c63f2b19c8d10ac7739687a41204 /tests/textDisp.test
parentfb6fb36eced4a4f01cf372bfbf537d0d39a19cba (diff)
downloadtk-8ebd5984ac2b766a6e4df0cb7efa262959ae7349.zip
tk-8ebd5984ac2b766a6e4df0cb7efa262959ae7349.tar.gz
tk-8ebd5984ac2b766a6e4df0cb7efa262959ae7349.tar.bz2
Factorize definition of constraint haveBigFontTwiceLargerThanTextFont.
Diffstat (limited to 'tests/textDisp.test')
-rw-r--r--tests/textDisp.test9
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/textDisp.test b/tests/textDisp.test
index 1749977..6edb47d 100644
--- a/tests/textDisp.test
+++ b/tests/textDisp.test
@@ -73,15 +73,6 @@ set bigFont {Helvetica -24} ; # note: not a fixed-width font!
set bigHeight [font metrics $bigFont -linespace]
set bigAscent [font metrics $bigFont -ascent]
-# Although unexpected, this constraint happens to evaluate to false on at
-# least one system: the Github CI runner on Linux with --disable-xft
-# This is because this configuration only has ONE single font available,
-# making all requested fonts become actually the same font.
-# See constraints.tcl for more details.
-testConstraint haveBigFontTwiceLargerThanTextFont [expr {
- [font actual $fixedFont -size] * 2 <= [font actual $bigFont -size]
-}]
-
set ascentDiff [expr {$bigAscent - $fixedAscent}]
set heightDiff [expr {$bigHeight - $fixedHeight}]