From 213fc4f6fb26bb5781ea3e489bf4cc5c2aca591e Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 17 Feb 2015 12:16:20 -0500 Subject: 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 --- man/man3/graphics.3 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'man/man3') diff --git a/man/man3/graphics.3 b/man/man3/graphics.3 index d07c269a..43214f1f 100644 --- a/man/man3/graphics.3 +++ b/man/man3/graphics.3 @@ -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) -- cgit v1.2.3