setZoomLevel

external fun setZoomLevel(level: Double)(source)

Changes the zoom level to the specified level. The original size is 0 and each increment above or below represents zooming 20% larger or smaller. The formula for this is scale := 1.2 ^ level, and the level is clamped to the range Chromium can display (25% to 500%, about -7.6 to 8.8).

!NOTE The zoom policy at the Chromium level is same-origin by default, meaning that the zoom level for a specific domain propagates across all instances of windows with the same domain. To use per-webContents zoom instead, set the zoom mode to 'isolated' via contents.setZoomMode('isolated').