LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can i increase font size through shell scripts ? (https://www.linuxquestions.org/questions/linux-newbie-8/can-i-increase-font-size-through-shell-scripts-4175502369/)

thiyagusham 04-20-2014 11:15 AM

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:

 # .bash_profile

# Get the aliases and functions
if [ -~/.bashrc ]; then
        
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
while true
do
clear
tput cup 10 8
echo " WELCOME TO LInUX "
sleep 2
clear
tput cup 10 8
echo " THIS IS SAM"
sleep 2
done 


colucix 04-20-2014 03:38 PM

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.

jpollard 04-21-2014 08:17 AM

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.

Shadow_7 04-21-2014 10:09 AM

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.