Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 18th October 2012, 10:12 PM
fetchinson Offline
Registered User
 
Join Date: Jun 2008
Posts: 68
linuxfirefox
what font is used in gnome-terminal in f17?

The default font in gnome-terminal in f17 is really great, I'd like to use it in xterm as well. But how do I find out what font it is? Once I know that I can put it in $HOME/.Xdefaults as XTerm*faceName.

Something related: how do I find out the possible choices for XTerm*faceName?
Reply With Quote
  #2  
Old 18th October 2012, 10:37 PM
secipolla Offline
Registered User
 
Join Date: May 2011
Posts: 700
linuxfirefox
Re: what font is used in gnome-terminal in f17?

Quote:
Originally Posted by fetchinson View Post
The default font in gnome-terminal in f17 is really great, I'd like to use it in xterm as well. But how do I find out what font it is? Once I know that I can put it in $HOME/.Xdefaults as XTerm*faceName.
I have mine in ~/.Xresources
I suppose in that app in GNOME where you choose your default fonts, you may find out.
I use Droid Sans Mono for mine (I think it's a Google font).

Quote:
Originally Posted by fetchinson View Post
Something related: how do I find out the possible choices for XTerm*faceName?
man xterm
Reply With Quote
  #3  
Old 18th October 2012, 11:08 PM
nonamedotc's Avatar
nonamedotc Offline
Formerly known as"professorrmd"
 
Join Date: Mar 2011
Posts: 2,627
linuxfedorafirefox
Re: what font is used in gnome-terminal in f17?

Quote:
Originally Posted by fetchinson View Post
The default font in gnome-terminal in f17 is really great, I'd like to use it in xterm as well. But how do I find out what font it is?
Edit --> Profile Preferences.

This should tell you the font used. I think it was Monospace. I don't remember what it was because I currently use Monospace italic and forgot what it was originally set to!
Reply With Quote
  #4  
Old 18th October 2012, 11:57 PM
skytux's Avatar
skytux Offline
Registered User
 
Join Date: Mar 2010
Location: São José dos Campos (Brasil)
Posts: 58
linuxfirefox
Re: what font is used in gnome-terminal in f17?

Quote:
Originally Posted by fetchinson View Post
The default font in gnome-terminal in f17 is really great, I'd like to use it in xterm as well. But how do I find out what font it is?
It is Monospace. I use xterm in this way:

Code:
xterm -bg black -fg white +sb -fa Monospace -fs 11
HTH,
Germán.
Reply With Quote
  #5  
Old 19th October 2012, 02:02 AM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,126
linuxchrome
Re: what font is used in gnome-terminal in f17?

Quote:
Originally Posted by fetchinson
Something related: how do I find out the possible choices for XTerm*faceName?
To list installed ttf fonts in a terminal: fc-list
fc-list is part of the fontconfig package.
Code:
BASH:~/-> fc-list | grep "DejaVu Sans"
DejaVu Sans,DejaVu Sans Condensed:style=Condensed Oblique,Oblique
DejaVu Sans Mono:style=Bold Oblique
DejaVu Sans:style=Bold Oblique
DejaVu Sans:style=Oblique
DejaVu Sans Mono:style=Oblique
DejaVu Sans,DejaVu Sans Condensed:style=Condensed Bold Oblique,Bold Oblique
DejaVu Sans,DejaVu Sans Light:style=ExtraLight
DejaVu Sans,DejaVu Sans Condensed:style=Condensed,Book
DejaVu Sans,DejaVu Sans Condensed:style=Condensed Bold,Bold
DejaVu Sans:style=Bold
DejaVu Sans:style=Book
DejaVu Sans Mono:style=Book
Code:
BASH:~/-> grep face .Xresources
XTerm*faceName: DejaVuSansMono
XTerm*faceSize: 12
Reply With Quote
  #6  
Old 19th October 2012, 09:09 AM
fetchinson Offline
Registered User
 
Join Date: Jun 2008
Posts: 68
linuxfirefox
Re: what font is used in gnome-terminal in f17?

Quote:
Originally Posted by nonamedotc View Post
Edit --> Profile Preferences.

This should tell you the font used. I think it was Monospace. I don't remember what it was because I currently use Monospace italic and forgot what it was originally set to!
Thanks a lot, yes, it's monospace 12. But there is a checkbox for bold text, which I also would like to replicate in xterm, how do I do that? I tried

Code:
XTerm*faceName: MonospaceBold
but that didn't do it.

---------- Post added at 01:09 AM ---------- Previous post was at 01:07 AM ----------

Quote:
Originally Posted by PabloTwo View Post
To list installed ttf fonts in a terminal: fc-list
fc-list is part of the fontconfig package.
Code:
BASH:~/-> fc-list | grep "DejaVu Sans"
DejaVu Sans,DejaVu Sans Condensed:style=Condensed Oblique,Oblique
DejaVu Sans Mono:style=Bold Oblique
DejaVu Sans:style=Bold Oblique
DejaVu Sans:style=Oblique
DejaVu Sans Mono:style=Oblique
DejaVu Sans,DejaVu Sans Condensed:style=Condensed Bold Oblique,Bold Oblique
DejaVu Sans,DejaVu Sans Light:style=ExtraLight
DejaVu Sans,DejaVu Sans Condensed:style=Condensed,Book
DejaVu Sans,DejaVu Sans Condensed:style=Condensed Bold,Bold
DejaVu Sans:style=Bold
DejaVu Sans:style=Book
DejaVu Sans Mono:style=Book
Code:
BASH:~/-> grep face .Xresources
XTerm*faceName: DejaVuSansMono
XTerm*faceSize: 12
Thanks a lot! It seems one can combine the font name (DejaVu) with its attributes (Sans, Mono) to end up with DejaVuSansMono but when I tried MonospaceBold the font was not bold. How do I get the default font to be bold then? Gnome-terminal is displaying bold (at least relative to xterm it's much bolder).

Actually I made some progress, the following works quite well

Code:
xterm -fs *-monospace-bold-*-normal--*-*-*-*-*-*-*
and the font is identical to the default gnome-terminal. Unfortunately I can't control the font size now.
And how would I give this setting to xterm in .Xdefaults or .Xresources?

This is getting weirder and weirder

It turns out

Code:
xterm -fs blablabla
already gives the nice bold fonts. Clearly blablabla is not a valid value but nevertheless it does have an effect (relative to launching xterm without any parameters). Does anyone know what's going on?

Last edited by fetchinson; 19th October 2012 at 09:27 AM.
Reply With Quote
  #7  
Old 19th October 2012, 09:58 AM
secipolla Offline
Registered User
 
Join Date: May 2011
Posts: 700
linuxfirefox
Re: what font is used in gnome-terminal in f17?

xterm -fs *-monospace-bold-*-normal-*-12-*-*-*-*-*

---------- Post added at 05:58 AM ---------- Previous post was at 05:54 AM ----------

Quote:
Originally Posted by fetchinson View Post
And how would I give this setting to xterm in .Xdefaults or .Xresources?
Make sure you leave a blank line as the first line (in ~.Xresources at least).
Reply With Quote
  #8  
Old 19th October 2012, 02:59 PM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,126
linuxchrome
Re: what font is used in gnome-terminal in f17?

This worked for me: I don't use bold, I use normal "DejaVu Sans Mono". I modified the faceName line to switch to bold like so:
Code:
XTerm*faceName: DejaVuSansMono:style=Bold
To make any edits to your ~/.Xdefaults or ~/.Xresources file active, you first either need to log out and back into your DE session, or do this:
Code:
xrdb -merge ~/.Xresources
Interestingly, there is no "Monospace" ttf font available in F16 except as provided by the cups package, which puts it's fonts in /usr/share/cups/fonts/, which doesn't appear in the fc-list list.

Last edited by PabloTwo; 19th October 2012 at 03:02 PM.
Reply With Quote
  #9  
Old 19th October 2012, 03:21 PM
fetchinson Offline
Registered User
 
Join Date: Jun 2008
Posts: 68
linuxfirefox
Re: what font is used in gnome-terminal in f17?

Quote:
Originally Posted by PabloTwo View Post
This worked for me: I don't use bold, I use normal "DejaVu Sans Mono". I modified the faceName line to switch to bold like so:
Code:
XTerm*faceName: DejaVuSansMono:style=Bold
Great, thanks a lot!
Reply With Quote
  #10  
Old 19th October 2012, 07:54 PM
vallimar Offline
Registered User
 
Join Date: Jul 2008
Posts: 809
windows_7chrome
Re: what font is used in gnome-terminal in f17?

Quote:
Originally Posted by PabloTwo View Post
Interestingly, there is no "Monospace" ttf font available in F16 except as provided by the cups package, which puts it's fonts in /usr/share/cups/fonts/, which doesn't appear in the fc-list list.
"Monospace" is just an alias, like "Sans" and "Serif".
I believe Fedora gives the DejaVu fonts lower rule numbers than other
packaged fonts, so they tend to be the system defaults if they are installed.
I don't have extensive experience in their font configs though so I may be
wrong about that.
Reply With Quote
Reply

Tags
f17, font, gnometerminal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
custom terminal fonts cannot be set by installing fonts from gnome-font-viewer hadrons123 F17 Development Forum 0 21st May 2012 06:15 AM
Can't select perticular font for gnome-terminal katatsumuri Installation and Live Media 2 26th October 2011 04:32 AM
About terminal font size! sclarkca Using Fedora 6 1st October 2006 12:57 AM
changing gnome-terminal font ? kalium Using Fedora 2 19th December 2004 11:27 AM


Current GMT-time: 04:05 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat