Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xterm font specification
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2365
Location: Kentucky

PostPosted: Wed Feb 24, 2010 2:17 am    Post subject: xterm font specification Reply with quote

I know this is really dumb, but I haven't had to do this in years, and now I'm going nuts just trying to find documentation on how to do it.

How do I specify the default font on the command line invocation for an xterm window?

I tried xterm -fn <font>, but it says invalid font for anything except "Fixed". I want to specify that the "small" font, as selected by CTL-middlemousebutton drag to small, is the default font, but not for all xterm windows; only for the one I explicitly say so on the command line.

Thanks! :D
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
mjf55
Guru
Guru


Joined: 25 Aug 2007
Posts: 372

PostPosted: Wed Feb 24, 2010 7:41 pm    Post subject: Reply with quote

how about xterm -fn 10x20. It shows a large font on my system

Found this link http://wiki.netbsd.se/How_to_use_TTF_fonts_in_xterm
fc-list | col | sort | less will show you your installed fonts
xterm -fa 'Liberation Mono' -fs 10 pretty big
xterm -fa 'Liberation Mono' -fs 5 pretty small

hope this helps.
_________________
Mark
No longer a n00b, but still a 'Kool Kid' wannabe
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2365
Location: Kentucky

PostPosted: Thu Feb 25, 2010 3:50 pm    Post subject: Reply with quote

OK, I can get 10x20 to take, but I already did the fc-list, and the only font that xterm would accept was Fixed, which is its default anyway. To show you what happens, look at this:
Code:

rj@gehazi ~ $ xterm -fa 'Liberation Mono' -fs 5
xterm:  bad command line option "-fa"

usage:  xterm [-/+132] [-C] [-Sccn] [-T string] [-/+ah] [-/+ai] [-/+aw]
    [-b number] [-/+bc] [-bcf milliseconds] [-bcn milliseconds] [-bd color]
    [-/+bdc] [-bg color] [-bw number] [-/+cb] [-cc classrange] [-/+cjk_width]
    [-class string] [-/+cm] [-/+cn] [-cr color] [-/+cu] [-/+dc]
    [-display displayname] [-e command args ...] [-fb fontname] [-/+fbb]
    [-/+fbx] [-fg color] [-fi fontname] [-fn fontname] [-fw fontname]
    [-fwb fontname] [-fx fontname] [%geom] [#geom] [-geometry geom] [-help]
    [-/+hm] [-/+hold] [-iconic] [-/+ie] [-/+im] [-into windowId] [-/+j] [-/+k8]
    [-kt keyboardtype] [-/+l] [-/+lc] [-lcc path] [-leftbar] [-lf filename]
    [-/+ls] [-/+maximized] [-/+mb] [-mc milliseconds] [-/+mesg] [-/+mk_width]
    [-ms color] [-n string] [-name string] [-nb number] [-/+nul] [-/+pc]
    [-/+pob] [-rightbar] [-/+rv] [-/+rvc] [-/+rw] [-/+s] [-/+samename] [-/+sb]
    [-selbg color] [-selfg color] [-/+sf] [-/+si] [-/+sk] [-sl number] [-/+sm]
    [-/+sp] [-/+t] [-ti termid] [-title string] [-tm string] [-tn name] [-/+u8]
    [-/+uc] [-/+ulc] [-/+ulit] [-/+ut] [-/+vb] [-version] [-/+wc] [-/+wf]
    [-xrm resourcestring] [-ziconbeep percent]

Type xterm -help for a full description.

rj@gehazi ~ $

All I realy want at this point is to have xterm start up with the font that I can get when I select the "small" font with the control key and the right mouse button.
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Sun Apr 11, 2010 6:14 pm    Post subject: Reply with quote

I know that it is much too late for a reply. Anyway, in case sombody hits this forum: You must reemerge xterm with USE=truetype set.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2365
Location: Kentucky

PostPosted: Tue Apr 13, 2010 2:06 pm    Post subject: Reply with quote

Thanks!

PS Its never too late if you watch topic for replies. 8)
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2365
Location: Kentucky

PostPosted: Tue Apr 13, 2010 2:06 pm    Post subject: Reply with quote

Thanks!

PS Its never too late if you watch topic for replies. 8)
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Tue Apr 13, 2010 3:11 pm    Post subject: Reply with quote

Not sure if you got it working yet, but I can add this:

I always create the FontPath in xorg.conf for all my installed fonts, as seen in /usr/share/fonts, because the default used by xorg may not correspond with installed fonts, and the x11-apps i.e. xterm, xcalc... really like the FontPath.

Example Fontpath in xorg.conf:
Code:
Section "Files"
        RgbPath    "/usr/share/X11/rgb"
        ModulePath "/usr/lib/xorg/modules"
        FontPath   "/usr/share/fonts/corefonts/"
        FontPath   "/usr/share/fonts/dejavu/"
        FontPath   "/usr/share/fonts/ttf-bitstream-vera/"
        FontPath   "/usr/share/fonts/freefont-ttf/"
        FontPath   "/usr/share/fonts/75dpi/"
        FontPath   "/usr/share/fonts/100dpi/"
        FontPath   "/usr/share/fonts/misc/"
        FontPath   "/usr/share/fonts/Speedo/"
        FontPath   "/usr/share/fonts/Type1/"
EndSection
X then needs to be restarted. :)
Back to top
View user's profile Send private message
BillyBoy
Tux's lil' helper
Tux's lil' helper


Joined: 26 Nov 2003
Posts: 101
Location: USA

PostPosted: Thu Jul 15, 2010 5:20 pm    Post subject: xterm font specification - fontpath Reply with quote

For what it's worth, you can always use

Code:
xset fp= blah,blah,blah


to manipulate the font path obviating the need to restart X until your next session.
Back to top
View user's profile Send private message
kklatt
n00b
n00b


Joined: 25 Oct 2004
Posts: 20

PostPosted: Wed Jan 18, 2017 5:36 pm    Post subject: Reply with quote

I've rebuild from scratch, forgotten how much to setup. Anyway, font sizes were ignored until I saw the Truetype setting, now works fine. Might help someone.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum