summaryrefslogtreecommitdiffstats
path: root/tests/font.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2024-05-31 17:11:28 (GMT)
committerfvogel <fvogelnew1@free.fr>2024-05-31 17:11:28 (GMT)
commit95c18ceae29b680b1769777fb97a05e9d0b7b603 (patch)
tree162125af3930295618155d9f15622d634ed84769 /tests/font.test
parent789cd6ea2a3de0e5d19338d594b97c467316d897 (diff)
parentb0b7b4f0c5fb08be19e68c71e6d812444120a4e8 (diff)
downloadtk-95c18ceae29b680b1769777fb97a05e9d0b7b603.zip
tk-95c18ceae29b680b1769777fb97a05e9d0b7b603.tar.gz
tk-95c18ceae29b680b1769777fb97a05e9d0b7b603.tar.bz2
merge core-8-6-branch
Diffstat (limited to 'tests/font.test')
-rw-r--r--tests/font.test15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/font.test b/tests/font.test
index 5ceb1ee..44ef219 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 {