Ticket UUID: | 72e9ddba21cbe29738a284fd23756cb055a630f4 | |||
Title: | text: textDisp-3.1 : font agnostic | |||
Type: | Bug | Version: | revised_text | |
Submitter: | bll | Created on: | 2017-06-26 02:58:09 | |
Subsystem: | 18. [text] | Assigned To: | fvogel | |
Priority: | 5 Medium | Severity: | Minor | |
Status: | Closed | Last Modified: | 2023-10-06 20:47:45 | |
Resolution: | Fixed | Closed By: | fvogel | |
Closed on: | 2023-10-06 20:47:45 | |||
Description: |
Patch attached. Not quite working on Mac OS X. Should work on Windows, but I only ran a separate test with 8.6.6. On Mac OS X [.t bbox 1.6] returns a width of 14, whereas the actual character width is 15. The dlineinfo for 1.0 returns two fewer pixels, but the dlineinfo for 3.0 is correct. | |||
User Comments: |
fvogel added on 2023-10-06 20:47:45:
Fixed in [e8a1d77828]. fvogel added on 2018-10-07 10:05:12: "Patch attached.": where is this patch? bll added on 2017-07-05 04:09:55: The results from Mac OS X. The big (fixed font) character width is 15, but Mac OS X returns 14 for the width for the bbox. The dlineinfo data is also off by two pixels. Not sure what's going on here. ---- textDisp-3.1 start ==== textDisp-3.1 different character sizes FAILED ==== Contents of test case: .t configure -wrap word .t delete 1.0 end .t insert end "Some sample text, including both large\n" .t insert end "characters and\nsmall\n" .t insert end "abc\nd\ne\nfghij" .t tag add bigfix 1.5 1.10 .t tag add bigfix 2.11 2.14 list [.t bbox 1.1] [.t bbox 1.6] [.t dlineinfo 1.0] [.t dlineinfo 3.0] ---- Result was: {12 15 7 14} {55 5 14 27} {5 5 122 27 20} {5 87 35 14 10} ---- Result should have been (exact matching): {12 15 7 14} {55 5 15 27} {5 5 124 27 20} {5 87 35 14 10} bll added on 2017-06-29 20:05:32: This ticket is on hold until the various tab issues are resolved. |