diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-01-03 14:52:53 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-01-03 14:52:53 (GMT) |
commit | 3c699ca0fa3870fce82abf47ed3d2ea99043bdfa (patch) | |
tree | 9116cddd166b8fffdb5425abb04159e9648ed770 /tests/unixFont.test | |
parent | 2eaac113f52bea5ecf64333618bca906c2482023 (diff) | |
download | tk-3c699ca0fa3870fce82abf47ed3d2ea99043bdfa.zip tk-3c699ca0fa3870fce82abf47ed3d2ea99043bdfa.tar.gz tk-3c699ca0fa3870fce82abf47ed3d2ea99043bdfa.tar.bz2 |
AllocFont() -> InitFont() in comments. Stolen from "less_tests_constraints" branch
Diffstat (limited to 'tests/unixFont.test')
-rw-r--r-- | tests/unixFont.test | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/unixFont.test b/tests/unixFont.test index 3aeaa22..217e639 100644 --- a/tests/unixFont.test +++ b/tests/unixFont.test @@ -236,7 +236,7 @@ test unixfont-7.3 {DrawChars procedure: overstrike} x11 { .b.l config -font $f } {} -test unixfont-8.1 {AllocFont procedure: use old font} x11 { +test unixfont-8.1 {InitFont procedure: use old font} x11 { font create xyz button .c -font xyz font configure xyz -family times @@ -244,10 +244,10 @@ test unixfont-8.1 {AllocFont procedure: use old font} x11 { destroy .c font delete xyz } {} -test unixfont-8.2 {AllocFont procedure: parse information from XLFD} x11 { +test unixfont-8.2 {InitFont procedure: parse information from XLFD} x11 { expr {[lindex [font actual {-family times -size 0}] 3] == 0} } 0 -test unixfont-8.3 {AllocFont procedure: can't parse info from name} x11 { +test unixfont-8.3 {InitFont procedure: can't parse info from name} x11 { catch {unset fontArray} # check that font actual returns the correct attributes. # the values of those attributes are system dependent. @@ -256,7 +256,7 @@ test unixfont-8.3 {AllocFont procedure: can't parse info from name} x11 { catch {unset fontArray} set result } {-family -overstrike -size -slant -underline -weight} -test unixfont-8.4 {AllocFont procedure: classify characters} {x11 failsOnUbuntu failsOnXQuarz} { +test unixfont-8.4 {InitFont procedure: classify characters} {x11 failsOnUbuntu failsOnXQuarz} { set x 0 incr x [font measure $courier "\u4000"] ;# 6 incr x [font measure $courier "\002"] ;# 4 @@ -264,33 +264,33 @@ test unixfont-8.4 {AllocFont procedure: classify characters} {x11 failsOnUbuntu incr x [font measure $courier "\101"] ;# 1 set x } [expr $cx*13] -test unixfont-8.5 {AllocFont procedure: setup widths of normal chars} x11 { +test unixfont-8.5 {InitFont procedure: setup widths of normal chars} x11 { font metrics $courier -fixed } 1 -test unixfont-8.6 {AllocFont procedure: setup widths of special chars} {x11 failsOnUbuntu failsOnXQuarz} { +test unixfont-8.6 {InitFont procedure: setup widths of special chars} {x11 failsOnUbuntu failsOnXQuarz} { set x 0 incr x [font measure $courier "\001"] ;# 4 incr x [font measure $courier "\002"] ;# 4 incr x [font measure $courier "\012"] ;# 2 set x } [expr $cx*10] -test unixfont-8.7 {AllocFont procedure: XA_UNDERLINE_POSITION} x11 { +test unixfont-8.7 {InitFont procedure: XA_UNDERLINE_POSITION} x11 { catch {font actual -adobe-courier-bold-i-normal--0-0-0-0-m-0-iso8859-1} set x {} } {} -test unixfont-8.8 {AllocFont procedure: no XA_UNDERLINE_POSITION} x11 { +test unixfont-8.8 {InitFont procedure: no XA_UNDERLINE_POSITION} x11 { catch {font actual --symbol-medium-r-normal--0-0-0-0-p-0-sun-fontspecific} set x {} } {} -test unixfont-8.9 {AllocFont procedure: XA_UNDERLINE_THICKNESS} x11 { +test unixfont-8.9 {InitFont procedure: XA_UNDERLINE_THICKNESS} x11 { catch {font actual -adobe-courier-bold-i-normal--0-0-0-0-m-0-iso8859-1} set x {} } {} -test unixfont-8.10 {AllocFont procedure: no XA_UNDERLINE_THICKNESS} x11 { +test unixfont-8.10 {InitFont procedure: no XA_UNDERLINE_THICKNESS} x11 { catch {font actual --symbol-medium-r-normal--0-0-0-0-p-0-sun-fontspecific} set x {} } {} -test unixfont-8.11 {AllocFont procedure: XA_UNDERLINE_POSITION was 0} x11 { +test unixfont-8.11 {InitFont procedure: XA_UNDERLINE_POSITION was 0} x11 { catch {font actual -adobe-courier-bold-i-normal--0-0-0-0-m-0-iso8859-1} set x {} } {} |