diff options
author | csaba <csaba> | 2023-05-16 18:22:40 (GMT) |
---|---|---|
committer | csaba <csaba> | 2023-05-16 18:22:40 (GMT) |
commit | f69d7f5e0fa13777d79b48ac838a89bb72e2586d (patch) | |
tree | 7d2f8e91888b4586874d1de3c60639c769b7e34c /doc | |
parent | 38d9932f1c214a1283effce6123557dda5762fb5 (diff) | |
download | tk-f69d7f5e0fa13777d79b48ac838a89bb72e2586d.zip tk-f69d7f5e0fa13777d79b48ac838a89bb72e2586d.tar.gz tk-f69d7f5e0fa13777d79b48ac838a89bb72e2586d.tar.bz2 |
Library file scaling.tcl slightly improved; documented the variable tk::svgFmt.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/tkvars.n | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/doc/tkvars.n b/doc/tkvars.n index f4db5cb..d0672a6 100644 --- a/doc/tkvars.n +++ b/doc/tkvars.n @@ -10,7 +10,7 @@ .BS '\" Note: do not modify the .SH NAME line immediately below! .SH NAME -geometry, tk_library, tk_patchLevel, tk_strictMotif, tk_version \- Variables used or set by Tk +geometry, tk_library, tk_patchLevel, tk_strictMotif, tk::svgFmt, tk_version \- Variables used or set by Tk .BE .SH DESCRIPTION .PP @@ -61,6 +61,18 @@ closely as possible to Motif look-and-feel standards. For example, active elements such as buttons and scrollbar sliders will not change color when the pointer passes over them. Modern applications should not normally set this variable. +.TP +\fBtk::svgFmt\fR +. +This variable is set at Tk initialization time to the value +[\fBlist svg \-scale\fR [\fBexpr\fR {\fIscalingPct\fR / 100.0}]], +where \fIscalingPct\fR is the scaling percentage (100, 125, 150, ...) +corresponding to the display's DPI scaling level. It is recommended +to pass the value of this variable to the commands \fBimage create +photo\fR, \fIimageName\fB put\fR, and \fIimageName\fB read\fR as the +value of their \fB\-format\fR option when creating or manipulating +SVG images, to make sure that their sizes will correspond to the +display's DPI scaling level. .TP 15 \fBtk_version\fR . |