Help with changing font size in konsole


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Help with changing font size in konsole
# 1  
Old 10-25-2012
Help with changing font size in konsole

I created a very very basic script that opens multiple konsole terminals when I run the script which essentially sshs into a jump box into the end device and tails some logs etc etc. A few of the konsoles run scripts where the default font size is too big and the lines are cut off. Which I would just manually resize the font to whatever size I would like in the GUI. But being my lazy self and the fact I have to do the task repeatedly, I wanted to find out if there was a way to add an option in my scripts that could size the font automatically for particular konsoles and leave them as default for the reset. I messed around with the konsole --font option but with no luck I keep getting QFONT::setRawName() Invalid XLFD, I don't think I am using the syntax correctly. The closest I've come is using the konsole --profile option which will launch the terminal with the desire font size, but the terminal just sits there and doesn't execute the other commands.

this is a sample line
Code:
konsole --geometry 1272x320+0+0 -e bash -c 'ssh X.X.X.X ssh X.X.X.X watch -d2 ./scripts.sh'


Last edited by Franklin52; 10-26-2012 at 09:22 AM.. Reason: Please use code tags for data and code samples
# 2  
Old 10-26-2012
Reads like xterm, so does it take '-fn 12x24' ?
# 3  
Old 10-26-2012
Thanks for the reply. I've tried -fn and --font and -font with 12x24 and I'm receiving the same error.

QFont::setRawName(): Invalid XLFD: "12x24"

I might just alter the lines and just use xterm, for just those particular sessions. I was just hoping there was a way to adjust it in kde konsole via command line and not just thru the GUI. If you have any other ideas or thoughts. Much appreciated.
# 4  
Old 10-26-2012
I sounds like a font resources setup problem. Does konsole have different font demands? You might run strace on it to see where it goes looking for fonts.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Increase Font size

Hi friends I want increase font size in linux can anybody help me plese Example:this is my in put Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 18G 2.5G 14G 15% / /dev/sda2 ... (1 Reply)
Discussion started by: vasuibm
1 Replies

2. Shell Programming and Scripting

Font Size in shell!

hi all,, is it possible to change the font size of the first line of text? i search it to internet but i have no luk. Ex. Line 1: HI Line 2: back to normal font size. THanks, (4 Replies)
Discussion started by: nikki1200
4 Replies

3. Shell Programming and Scripting

Font Size

Hi All, Please can someone advise on how to change the font size of the output of a shell script. Best Regards, Shazin (2 Replies)
Discussion started by: Shazin
2 Replies

4. UNIX for Dummies Questions & Answers

Font size in VIM

Hello, I use VIM version 7.1.56 on Ubuntu OS. Can you tell me pls how can I change the font-size in VIM? Thanks, Iuli (1 Reply)
Discussion started by: ketchera
1 Replies

5. UNIX for Dummies Questions & Answers

set font size

can any one tell me how to set the font size in unix? (14 Replies)
Discussion started by: sachin.gangadha
14 Replies

6. Shell Programming and Scripting

Changing font and color in log file of Script

Hi, We have process log with user defined error messages and information echos. I wanted to highlight error messgaes in that log file while writing in it. Is there any option with either echo or any other command which enables making text bold or we can change the font of body text of echo. ... (4 Replies)
Discussion started by: satgo
4 Replies

7. UNIX for Dummies Questions & Answers

How can I enlarged the font size?

How can I enlarged the font size when I opened the pdf files with ghostscript or ghostview in solaris 8 for sparc. The font is so small that I can't see it!] Help me please! (0 Replies)
Discussion started by: new_hand
0 Replies

8. UNIX for Dummies Questions & Answers

Font size

Hello all I am a new linux user (Redhat 7) and I am trying to learn how to operate the system. I have a couple problems one the font size for all windows withing the OS are too small and even though I found a couple places to configure font size I can't find where to change the font size for the... (2 Replies)
Discussion started by: elhefe
2 Replies

9. UNIX for Advanced & Expert Users

Changing font in script

I'm trying to figure out how to change the font or color of output in the middle of a shell script. I can't find anything that tells me how to do that. Any ideas? (1 Reply)
Discussion started by: MDyer18
1 Replies
Login or Register to Ask a Question