Le 19/04/2023 à 22:42, David L Chopp via X11-users a écrit :
Thanks to those that made suggestions. Unfortunately, most did not work, but one came close. For whatever reason, the font seemed to play a role and it didn’t have to do with size. The example provided by Pascal:

(progn (set-frame-font "Monaco-16")
       (set-frame-width (selected-frame) 80)
       (set-frame-height (selected-frame) 48)
       (set-frame-position (selected-frame) 64 32 ))

almost worked, but I stumbled onto the realization that the font and the frame size have to play nice in some mysterious way. There’s room for more experimentation, but I found I couldn’t use frame width 80 (79 was max) and not all fonts would work, but I found a mono-spaced font that would work. I dropped this into the .emacs file on the remote machine and that did well enough:

(progn (set-frame-font "-DAMA-Ubuntu Mono-normal-normal-normal-*-*-*-*-*-m-0-iso10646-1")
        (set-frame-width (selected-frame) 79)
        (set-frame-height (selected-frame) 48)
        (set-frame-position (selected-frame) 10 10))

Thanks again...


This font specification doesn't specify a font size. If you added a font size (a little smaller than the current one), you should widden the frame.

When you change the frame-font, it adjusts the frame size (keeping it at the same width and height in characters). You may use my full-frame command to adjust the frame size again with the new font&size. In any case, have a look at the code of full-frame to see how I find the screen sizes and compute the new frame size and position. You may use that to write your own frame sizing command.


--
__Pascal Bourguignon__

_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (X11-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to