diff options
author | fvogel <fvogelnew1@free.fr> | 2023-11-13 21:52:13 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2023-11-13 21:52:13 (GMT) |
commit | 29377ce482568009ea57aa8c29955df95e9c066a (patch) | |
tree | b3aa5a5eebf30311d4fcf3185e8af7b9e2835b6c /tests | |
parent | f0844f86778394bb001df716ca5dea9aee95abec (diff) | |
download | tk-29377ce482568009ea57aa8c29955df95e9c066a.zip tk-29377ce482568009ea57aa8c29955df95e9c066a.tar.gz tk-29377ce482568009ea57aa8c29955df95e9c066a.tar.bz2 |
Reintroduce rounding in font-44.1
Diffstat (limited to 'tests')
-rw-r--r-- | tests/font.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/font.test b/tests/font.test index a708242..a1bf9b8 100644 --- a/tests/font.test +++ b/tests/font.test @@ -2349,7 +2349,7 @@ puts "font actual {times -12}: [font actual {times -12}]" puts "oldsize: $oldsize" tk scaling 0.5 puts "font actual {times -12}: [font actual {times -12}]" - expr {abs([font actual {times -12} -size] / $oldscale * 0.5 - $oldsize) < 0.001} + expr {abs(round([font actual {times -12} -size] / $oldscale * 0.5) - round($oldsize)) == 0} } -cleanup { tk scaling $oldscale } -result 1 |