| Ticket UUID: | 43e38f1bcc09b1a8bd6b68513c6fbbd6ec1f4ae8 | |||
| Title: | entry-3.2 (in ttk) fails on macOS | |||
| Type: | Bug | Version: | core-8-6-branch | |
| Submitter: | fvogel | Created on: | 2017-12-06 21:41:36 | |
| Subsystem: | 86. Test Tools | Assigned To: | fvogel | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2017-12-10 17:04:11 | |
| Resolution: | Fixed | Closed By: | fvogel | |
| Closed on: | 2017-12-10 17:04:11 | |||
| Description: |
entry-3.2 (in ttk) fails on macOS (and not on Win) as follows:
==== entry-3.2 xview FAILED
==== Contents of test case:
.e delete 0 end;
.e insert end [string repeat "0" 40]
update idletasks
set result [.e xview]
---- Result was:
0.0 0.55
---- Result should have been (exact matching):
0.0 0.5
==== entry-3.2 FAILED
| |||
| User Comments: |
fvogel added on 2017-12-10 17:04:11:
Merged to core-8-6-branch and trunk. fvogel added on 2017-12-08 23:35:03: Fixed by [c4b2be4f]. fvogel added on 2017-12-07 06:17:30: It appears that 'fixed' is a Linux and Windows thing. There is no documentation of this 'fixed' font in the font man page anyway. The proper cross-platform way of requesting a fixed-width font really is to use TkFixedWidth. This is documented in the man page and explained in TIP #145. I'll change the font used in the failing tests accordingly. fvogel added on 2017-12-06 21:46:05: This test uses a font named 'fixed' (this is specified in test entry-3.0 "Series 3 setup"). However, on macOS this supposedly fixed font is not fixed in fact: % font metrics fixed -ascent 13 -descent 3 -linespace 16 -fixed 0 Using 'TkFixedFont' instead makes this test pass ('TkFixedFont' has -fixed 1 indeed). See also [98db50bdad]. Why there is a difference, and what is that difference, between 'TkFixedFont' and 'fixed'? | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki