Function: hycontrol-set-frame-size
hycontrol-set-frame-size is a byte-compiled function defined in
hycontrol.el.
Signature
(hycontrol-set-frame-size FRAME WIDTH HEIGHT &optional PIXELWISE)
Documentation
Set text size of FRAME to WIDTH by HEIGHT, measured in characters.
Ensure frame fits within the screen size.
Optional argument PIXELWISE non-nil means to measure in pixels. Note: When `frame-resize-pixelwise’ is nil, some window managers may refuse to honor a WIDTH that is not an integer multiple of the default frame font width or a HEIGHT that is not an integer multiple of the default frame font height.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hycontrol.el
(defun hycontrol-set-frame-size (frame width height &optional pixelwise)
"Set text size of FRAME to WIDTH by HEIGHT, measured in characters.
Ensure frame fits within the screen size.
Optional argument PIXELWISE non-nil means to measure in pixels. Note:
When `frame-resize-pixelwise’ is nil, some window managers may refuse to
honor a WIDTH that is not an integer multiple of the default frame font
width or a HEIGHT that is not an integer multiple of the default frame
font height."
(let ((x-origin (hycontrol-frame-x-origin))
(y-origin (hycontrol-frame-y-origin))
(frame-resize-pixelwise t))
(set-frame-size frame width height pixelwise)
(hycontrol-frame-fit-to-screen frame x-origin y-origin)))