FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.13] gh-143990: Preserve the size when creating a Font from a named font (GH-153267) (GH-153323) by miss-islington · Pull Request #153342 · python/cpython · GitHub

Repository navigation

[3.13] gh-143990: Preserve the size when creating a Font from a named font (GH-153267) (GH-153323) - #153342

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
miss-islington:backport-a9d4473-3.13
Jul 8, 2026
Merged

serhiy-storchaka merged 1 commit into
python:3.13from
miss-islington:backport-a9d4473-3.13

Conversation

miss-islington commented Jul 8, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

tkinter.font.Font now copies the options of a named font (via "font
configure") instead of the options resolved by "font actual", which
would resolve a size specified in pixels (a negative size) to points.
A font description is still resolved, as it cannot be parsed otherwise.

Font.copy(), which has always been equivalent to constructing a Font
from the original font, is updated to match and now preserves the size
too.

(cherry picked from commit 45010f4)
(cherry picked from commit a9d4473)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Opus 4.8 noreply@anthropic.com

… named font (pythonGH-153267) (pythonGH-153323)

tkinter.font.Font now copies the options of a named font (via "font
configure") instead of the options resolved by "font actual", which
would resolve a size specified in pixels (a negative size) to points.
A font description is still resolved, as it cannot be parsed otherwise.

Font.copy(), which has always been equivalent to constructing a Font
from the original font, is updated to match and now preserves the size
too.

(cherry picked from commit 45010f4)
(cherry picked from commit a9d4473)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
serhiy-storchaka enabled auto-merge (squash) July 8, 2026 13:10
serhiy-storchaka merged commit d5e2677 into python:3.13 Jul 8, 2026
42 checks passed
miss-islington deleted the backport-a9d4473-3.13 branch July 8, 2026 13:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL