summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-05-29 20:11:22 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-05-29 20:11:22 (GMT)
commit7ad6a02657e59e8ae528bfff1103afc488431e4d (patch)
treeef749c0efb74a74c137e328ff3156a2331094d26 /tests
parent7543d00a943dbdbf3ad39fc91a3bad9e779bb1a7 (diff)
parentb0b7b4f0c5fb08be19e68c71e6d812444120a4e8 (diff)
downloadtk-7ad6a02657e59e8ae528bfff1103afc488431e4d.zip
tk-7ad6a02657e59e8ae528bfff1103afc488431e4d.tar.gz
tk-7ad6a02657e59e8ae528bfff1103afc488431e4d.tar.bz2
Merge 8.6
Diffstat (limited to 'tests')
-rw-r--r--tests/font.test15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/font.test b/tests/font.test
index 8794b98..ca38269 100644
--- a/tests/font.test
+++ b/tests/font.test
@@ -2347,15 +2347,15 @@ test font-43.1 {FieldSpecified procedure: specified vs. non-specified} -body {
} -result [font actual {times 0} -family]
-test font-44.1 {TkFontGetPixels: size < 0} -setup {
+test font-44.1 {TkFontGetPixels: size < 0} -setup {
set oldscale [tk scaling]
} -body {
- set oldsize [expr {-(-12.0 / $oldscale)}]
+ # if this test failed, start the investigations by reading ticket [8162e9b7a9]
tk scaling 0.5
- expr {round([font actual {times -12} -size] / $oldscale * 0.5) - round($oldsize) == 0}
+ font actual {times -13} -size
} -cleanup {
tk scaling $oldscale
-} -result 1
+} -result 26
test font-44.2 {TkFontGetPoints: size >= 0} -constraints {noExceed haveTimes12Font} -setup {
set oldscale [tk scaling]
} -body {
@@ -2364,6 +2364,13 @@ test font-44.2 {TkFontGetPoints: size >= 0} -constraints {noExceed haveTimes12Fo
} -cleanup {
tk scaling $oldscale
} -result 12
+test font-44.3 {font create with display scaling not 100% - bug 8162e9b7a9} -body {
+ set font1 TkDefaultFont
+ set font2 [font create Font2 {*}[font actual $font1]]
+ expr {[font actual $font1 -size] == [font actual $font2 -size]}
+} -cleanup {
+ font delete $font2
+} -result 1
test font-45.1 {TkFontGetAliasList: no match} -body {