-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
gh-86017: Improve font actual docs #22434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 4 commits
82019b6
a446cd6
cf263fb
63adfdc
966592d
4a3ea48
b8ca758
b30dbcc
f0767f0
28879b1
2a8eab5
fc61256
9e7f20c
7e08284
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,7 +47,16 @@ The different font weights and slants are: | |
|
|
||
| .. method:: actual(option=None, displayof=None) | ||
|
|
||
| Return the attributes of the font. | ||
| Returns information about the actual attributes that are obtained when | ||
| the font is used on *displayof*; the values obtained may differ from | ||
| those given (and retrieved by :meth:`Font.cget`) due to | ||
| platform-dependent limitations (such as the availability of font | ||
| families and pointsizes). If *displayof* is omitted, it defaults to the | ||
E-Paine marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| main window. | ||
|
|
||
| If *option* is specified, the value of just that attribute is returned; | ||
| if it is omitted, the return value is a dictionary of all the attributes | ||
| and their values. See above for a list of the possible attributes. [1]_ | ||
|
||
|
|
||
| .. method:: cget(option) | ||
|
|
||
|
|
@@ -59,7 +68,7 @@ The different font weights and slants are: | |
|
|
||
| .. method:: copy() | ||
|
|
||
| Return new instance of the current font. | ||
| Return new instance of the current font with a different *name*. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice! |
||
|
|
||
| .. method:: measure(text, displayof=None) | ||
|
|
||
|
|
@@ -93,4 +102,10 @@ The different font weights and slants are: | |
|
|
||
| .. function:: nametofont(name) | ||
|
|
||
| Return a :class:`Font` representation of a tk named font. | ||
| Return a :class:`Font` representation of a tk named font. | ||
|
|
||
| References | ||
| ---------- | ||
|
|
||
| .. [1] Tk 8.6 font man page | ||
| https://www.tcl.tk/man/tcl8.6/TkCmd/font.htm#M5 | ||
|
||
Uh oh!
There was an error while loading. Please reload this page.