LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-25-2009, 12:12 AM   #1
crs_zxf
Member
 
Registered: Oct 2008
Distribution: Arch Linux
Posts: 37

Rep: Reputation: 17
font in pseudo terminal


Hi all!

I got confused with the font setting under different terminals, I set the same font under both urxvt and gnome-terminal, but I got different appearance, font in urxvt always looks a litter bit shorter and also uglier than in gnome-terminal no matter which font I choose, and I want my urxvt will behave the same as gnome-terminal.

Any ideas?? Thanks in advance!!

Last edited by crs_zxf; 07-25-2009 at 12:28 AM.
 
Old 07-25-2009, 08:40 PM   #2
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0
Posts: 219
Blog Entries: 2

Rep: Reputation: 41
How have you tried to change the font in urxvt?

This is what I use.
Code:
urxvt -bl -bg black -fg white -fn -zevv-peep-medium-r-normal--16-140-75-75-c-80-iso8859-1 -fb -zevv-peep-medium-r-normal--16-140-75-75-c-80-iso8859-1
This changes both the bold font and normal font to -zevv-peep- on my terminal and gives me a black background with a white foreground.
 
Old 07-25-2009, 10:18 PM   #3
crs_zxf
Member
 
Registered: Oct 2008
Distribution: Arch Linux
Posts: 37

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by Mol_Bolom View Post
How have you tried to change the font in urxvt?
I use xft font, and change the font style through .Xdefaults, as:
Code:
urxvt.font: xft:lucida console-9
and I change gnome-terminal just through editing its profile, you can find this option on the menu bar.

You could try this out, maybe you'll get the same result as me.

Thanks!

Last edited by crs_zxf; 07-25-2009 at 10:20 PM.
 
Old 07-25-2009, 11:50 PM   #4
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0
Posts: 219
Blog Entries: 2

Rep: Reputation: 41
To be honest I have never used xft, also, I don't use xdefault, or Xresource as it's called on my system. However, I did some reading and found that you can test it to see if it would work from another terminal. So try this code first from a terminal and see if urxvt starts with the font.

Code:
urxvt -fn "xft:lucida console:pixsize=9"
Or change pixsize to whatever size you want.

I tested this with liberation serif and it worked.

If you can, post the name of the font file you are using, and where you got it from and I'll try it out myself.

<Edit> I just found something else. Perhaps the font wasn't installed. I came across this problem with one of my fonts and just found a solution.

Try "fc-cache -f -v" to update your fonts.

Last edited by Mol_Bolom; 07-26-2009 at 12:10 AM.
 
Old 07-26-2009, 03:55 AM   #5
crs_zxf
Member
 
Registered: Oct 2008
Distribution: Arch Linux
Posts: 37

Original Poster
Rep: Reputation: 17
In my case, I need to use "pixelsize" instead of "pixsize", and in fact, the way you set the font is the same as my way, and I still got the different font appearance under urxvt and gnome-terminal.

The font I use currently is "dejavu sans mono" which is shipped with my Ubuntu 9.04. I just tried to set my terminal font to "lucida console" which is also shipped with my system.

Both fonts looks different under those two terminals.
 
Old 07-26-2009, 12:44 PM   #6
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0
Posts: 219
Blog Entries: 2

Rep: Reputation: 41
Here's something that may help. http://www.unixresources.net/linux/l...06/120678.html

The only thing I can think of doing is finding the font using xlsfonts and trying those font names.

Type in a terminal.
xlsfonts | grep "lucida console"

And if that doesn't work...
xlsfonts | grep console

And paste the contents here.
 
Old 07-26-2009, 08:39 PM   #7
crs_zxf
Member
 
Registered: Oct 2008
Distribution: Arch Linux
Posts: 37

Original Poster
Rep: Reputation: 17
In fact, those two commands both gave me nothing, instead, I tried:
Code:
xlsfonts | grep lucida
, and the output is somewhat like:
Code:
...
-b&h-lucidatypewriter-medium-r-normal-sans-26-190-100-100-m-159-iso10646-1
-b&h-lucidatypewriter-medium-r-normal-sans-26-190-100-100-m-159-iso10646-1
-b&h-lucidatypewriter-medium-r-normal-sans-26-190-100-100-m-159-iso8859-1
...
lucidasans-8
lucidasans-8
lucidasans-bold-10
lucidasans-bold-10
lucidasans-bold-10
...
I left out most lines, just give you a sample here. Are these all the font names that I can use, if so, it's weird that the command
Code:
urxvt -fn "xft:lucida console-9"
works, and it just show me a litte difference in font appearance than gnome-terminal.

Thanks for your help!
 
Old 07-26-2009, 09:38 PM   #8
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0
Posts: 219
Blog Entries: 2

Rep: Reputation: 41
Quote:
Originally Posted by crs_zxf View Post
Are these all the font names that I can use, if so, it's weird that the command
Code:
urxvt -fn "xft:lucida console-9"
works, and it just show me a litte difference in font appearance than gnome-terminal.
There's another program you can use that will list other fonts as well, fc-list. The fonts it lists are the xft forms and list the fonts that are not listed with xlsfonts.

Quote:
Thanks for your help!
No problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pseudo-Terminal means? Marty21 Linux - Software 1 01-28-2009 03:53 PM
Pseudo Terminal Problem gabsik Linux - Software 8 07-25-2008 06:00 AM
Pseudo terminal programming Alien_Hominid Programming 5 01-20-2008 05:19 AM
pseudo terminal - scp problem vdx Programming 9 08-22-2007 04:37 AM
Pseudo Terminal Problems ailiez Programming 2 02-09-2004 02:58 AM


All times are GMT -5. The time now is 04:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration