change-font-size(3)change-font-size - Incrementally change font size
n change-font-size
change-font-size incrementally increases or decreases the size of the font or resets it back to the original size. The numeric argument n is used to determine the action required, a +ve argument will increase the font size by the given amount, -ve will decrease and 0 or no argument will reset the size.
The size of n is important, a value of +2 will increase the font size at twice the rate of +1.
When using a relatively small text size it is often desirable to use good bitmap based font rather than a scalable one as these typically offer greater clarity. For example ProggyFonts (http://www.proggyfonts.net/) are small yet very clear. However these fonts do not typically scale well. To address this issue the variable .change-font.sz-font can be set to a font name that should be used when changing the font size. For example, on UNIX this could be set to:
set-variable .change-font.sz-font "-*-fixed-medium-r-*-*-%d-*-*-*-*-*-iso8859-*"
On Windows the following could be used:
set-variable .change-font.sz-font "Consolas"
When this variable is used the first call to change-font-size often leads to a greater size change than desired as the new font sizing may differ, however this can then be adjusted via subsequent call to the command. When the font size is reset, by giving no numeric argument or an argument of 0, the font as well as the font size is reset back to their original values.
The implementation of change-font-size is platform specific, on Windows the macro is defined in windows.emf and for UNIX systems it is defined in unixterm.emf. Both variant rely on the change-font(2) command.
(c) Copyright JASSPA 2025
Last Modified: 2024/10/06
Generated On: 2025/09/29