Skip to content

Commit bdac908

Browse files
gh-143990: Add What's New entry for tkinter.font.Font wrapping
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent b7b573d commit bdac908

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Doc/whatsnew/3.16.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,12 @@ tkinter
236236
ttk version, and accepts mappings of button options as *buttons* entries.
237237
(Contributed by Serhiy Storchaka in :gh:`59396`.)
238238

239+
* :class:`tkinter.font.Font` can now wrap a font description without creating a
240+
new named font, by passing it as *font* with ``exists=True`` and no *name*.
241+
This avoids a loss of precision in :meth:`~tkinter.font.Font.actual`,
242+
:meth:`~tkinter.font.Font.measure` and :meth:`~tkinter.font.Font.metrics`.
243+
(Contributed by Serhiy Storchaka in :gh:`143990`.)
244+
239245
xml
240246
---
241247

0 commit comments

Comments
 (0)