can i increase font size through shell scripts ?
Hi All ;
In shell script , how can i display bigger font size. This program is working well but i cannot increase bigger font size. PHP Code:
|
Terminals and console have a fixed font size. You can change the terminal settings or the resolution of the console in some way or another, but this won't give you the desired effect of a single bigger echo output. Instead you can use something like figlet or toilet to display large text using other characters (once upon a time the banner command). Here is a brief explanation. Hope this helps.
|
Unless the terminal is an old DEC vt100, with double height/double width capability...
Terminals are limited as they are not "smart" devices. To get that effect you use a GUI toolkit with X window (or the equivalent) where multiple fonts are supported. |
In X you can set a font and size for the xterm you use. For eterm it would look something like " -F *-fixed-*-*-*-*-18-* " where the name is one that exists and is selectable from xfontsel. There used to be an XVGAsettextmode or similarly named thing that could change the resolution of your console screen on the fly. It was hit or miss, but was one way to increase font size by decreasing screen resolution. These days you'd probably have to configure a video mode in grub which you'd have to reboot to change again.
|
All times are GMT -5. The time now is 06:40 PM. |