| Ticket UUID: | 0f8e851c6ef7f7da9e6ad642c346e8f0efc9a17d | |||
| Title: | print.tcl: _print_canvas.text on Windows — negative font size from _make_gdi_cfont causes text not to render | |||
| Type: | Bug | Version: | Tk 9.0.x | |
| Submitter: | anonymous | Created on: | 2026-06-24 17:04:12 | |
| Subsystem: | 04. Canvas Basics | Assigned To: | nobody | |
| Priority: | 5 Medium | Severity: | Important | |
| Status: | Open | Last Modified: | 2026-06-25 05:32:01 | |
| Resolution: | None | Closed By: | nobody | |
| Closed on: | ||||
| Description: |
Description: Text items are missing when printing; lines/rectangles/ovals appear. _make_gdi_cfont returns a negative pixel size → GdiMakeLogFont skips GdiParseFontWords → Text is often invisible. Expected: Bold “Hello World” in the printout. Actual: Text is blank. Suggested fix: Pass a positive point size calculated from the actual font size plus weight/slant to the GDI text function. | |||
| User Comments: |
kevin_walzer added on 2026-06-25 05:32:01:
Are you able to provide a patch? | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki