| Ticket UUID: | 61550f38bf1c3fc9d449e31df6ea7445497e8df4 | |||
| Title: | font actual returns wrong font size with Xft | |||
| Type: | Bug | Version: | core-8-6-branch | |
| Submitter: | fvogel | Created on: | 2023-10-29 15:50:02 | |
| Subsystem: | 46. Unix Fonts | Assigned To: | fvogel | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2024-05-26 17:59:25 | |
| Resolution: | Fixed | Closed By: | fvogel | |
| Closed on: | 2024-05-26 17:59:25 | |||
| Description: |
On Linux, with Xft only, the following script returns 9 whereas it should return 24:
package require Tk
font metrics -xyz-times-*-*-*-*-12-*-*-*-*-*-*-* -linespace
tk scaling 0.5
font actual {times -12} -size
A few notes: - On Linux without Xft, or on Windows, the correct result (24) is obtained. - If the [font metrics] line is commented out, then the correct result is obtained. - If the [font scaling] statement is run first, then the correct result is obtained. - The above test script is trimmed down from font.test, where font-44.1 fails with Xft. In fact, font-44.1 fails when it is run after font-42.2. In contrast, font-44.1 does not fail when run in isolation. There is an interaction between font-42.2 and font-44.1, which is reproduced in my above test script. - There has been previous attempts to fix font-44.1. For instance [8271b8d2] claims it fixes font-44.1, but it's not the case. It is true that font-44.1 fails before [8271b8d2] and passes after it, but only when the test is run within the entire font.test file. Before or after [8271b8d2] my little script above returns the same wrong answer (9), indicating that the problem persists. - Another attempt to address font-44.1 failure in the past was [434d294df8]. There has been a further report for a similar problem in [6767393c29]. | |||
| User Comments: |
fvogel added on 2024-05-26 17:59:25:
Note: there was a follow-up ticket to the present one, see [8162e9b7a9]. fvogel added on 2023-11-15 20:03:52: This original merge below had issues in font-44.1 that the CI runner at Github Actions did reveal. The fix had to be reverted. Fix is now merged again with a more robust font-44.1. fvogel added on 2023-11-15 20:03:51: This original merge below had issues in font-44.1 that the CI runner at Github Actions did reveal. The fix had to be reverted. Fix is now merged again with a more robust font-44.1. fvogel added on 2023-11-05 17:13:55: Merged in core-8-6-branch and trunk. fvogel added on 2023-10-29 21:15:16: Fix proposal: [c306fdd1c8]. Review much appreciated, thanks! fvogel added on 2023-10-29 21:14:49: Fix proposal: [c306fdd1c8]. Review much appreciated, thanks! | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki