SetZoomLevel Method

Applies To: HTMLRenderer

Description

Sets the CEF ZoomLevel. The default (unzoomed) level is 0. Setting a positive value will increase the zoom, whereas setting a negative will decrease the zoom. The zoom scale is not linear; rather the effective scaling is approximately 1.2*level, so, setting the ZoomLevel to 1 will result in an approximate 20% size increase. ZoomLevel affects all instances of HTMLRenderer windows; it is not possible to have different ZoomLevels for individual windows.

The argument to SetZoomLevel is a single numeric value:

[1] ZoomLevel Numeric

Examples

      hr Zoom level;lb;in
[1]    hr.SetZoomLevel level
[2]    levelhr.GetZoomLevel
[3]    ((level='¯')/level)'-'
[4]    lb'<label>Zoom Level is </label>'
[5]    in'<input type="number" value="',level,'"></input>'
[6]    hr.HTMLlb,in
     
      hr.⎕WC'HTMLRenderer' ('Caption' 'ZoomLevel Method')
      hr Zoom 0

zoomlevel 0
Figure 1: zoomlevel 0

      hr Zoom 1

zoomlevel 1
Figure 2: zoomlevel 1

      hr Zoom 2

zoomlevel 2
Figure 3: zoomlevel 2

      hr Zoom ¯1

zoomlevel neg1
Figure 4: zoomlevel neg1