Dear Community,
I am playing with terminals in X11 using x11-wm/twm. Twm is a simple window manager which supports floating windows. The XTerm are configured to use true type fonts. I can place an instance of Xterm with the geometry option. This allows to specify the size of the XTerm in terms of columns and rows. Additionally the offset to the displays origin (this is often the upper left corner) can be defined in pixel.
In XTerm but also other terminals as xfce4-terminal or lx-terminal the font size can be changed during runtime. This can be done using menus, key combinations or so. Doing so the the geometry of the terminal is unchanged. That means that offset to the origin of the display is kept. Since the dimensions of the terminal are specified in columns and rows the size in pixel changes when the font size is changed.
I would like to change the font but keep the space consumed by the terminal measured in pixel unchanged.
Christoph
I am playing with terminals in X11 using x11-wm/twm. Twm is a simple window manager which supports floating windows. The XTerm are configured to use true type fonts. I can place an instance of Xterm with the geometry option. This allows to specify the size of the XTerm in terms of columns and rows. Additionally the offset to the displays origin (this is often the upper left corner) can be defined in pixel.
In XTerm but also other terminals as xfce4-terminal or lx-terminal the font size can be changed during runtime. This can be done using menus, key combinations or so. Doing so the the geometry of the terminal is unchanged. That means that offset to the origin of the display is kept. Since the dimensions of the terminal are specified in columns and rows the size in pixel changes when the font size is changed.
I would like to change the font but keep the space consumed by the terminal measured in pixel unchanged.
- Is there any method to change the font size but keeping the dimension in pixels almost unchanged?
- Or can I query the actual font size of the terminal? That should allow me to change the font size in one step and correct the geometry in a second step.
Christoph