libdraw: autoscale fonts when moving between low and high dpi screens
Change-Id: I6093955b222db89dfe437fb723593b173d888d01 Reviewed-on: https://plan9port-review.googlesource.com/1170 Reviewed-by: Russ Cox <rsc@swtch.com>
This commit is contained in:
parent
77f23268f7
commit
213fc4f6fb
9 changed files with 243 additions and 28 deletions
|
|
@ -487,6 +487,21 @@ point to the portion of the window inside the border;
|
|||
sophisticated clients may use
|
||||
.B _screen
|
||||
to make further subwindows.
|
||||
If
|
||||
.I getwindow
|
||||
is being called due to a resizing of the window,
|
||||
the resize may be accompanied by a change in screen pixel density (DPI),
|
||||
in which case the value of the
|
||||
.BR Display 's
|
||||
.B dpi
|
||||
field and any open
|
||||
.BR Font 's
|
||||
.B height
|
||||
and
|
||||
.B ascent
|
||||
fields may be updated during the call to
|
||||
.IR getwindow .
|
||||
Programs should discard any cached information about display or font sizes.
|
||||
.\" Programs desiring multiple independent windows
|
||||
.\" may use the mechanisms of
|
||||
.\" .IR rio (4)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue