View previous topic :: View next topic |
Author |
Message |
Moriah Advocate
Joined: 27 Mar 2004 Posts: 2365 Location: Kentucky
|
Posted: Wed Feb 24, 2010 2:17 am Post subject: xterm font specification |
|
|
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! _________________ The MyWord KJV Bible tool is at http://www.elilabs.com/~myword
Foghorn Leghorn is a Warner Bros. cartoon character. |
|
Back to top |
|
|
mjf55 Guru
Joined: 25 Aug 2007 Posts: 372
|
Posted: Wed Feb 24, 2010 7:41 pm Post subject: |
|
|
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 |
|
|
Moriah Advocate
Joined: 27 Mar 2004 Posts: 2365 Location: Kentucky
|
Posted: Thu Feb 25, 2010 3:50 pm Post subject: |
|
|
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 |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Sun Apr 11, 2010 6:14 pm Post subject: |
|
|
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 |
|
|
Moriah Advocate
Joined: 27 Mar 2004 Posts: 2365 Location: Kentucky
|
Posted: Tue Apr 13, 2010 2:06 pm Post subject: |
|
|
Thanks!
PS Its never too late if you watch topic for replies. _________________ The MyWord KJV Bible tool is at http://www.elilabs.com/~myword
Foghorn Leghorn is a Warner Bros. cartoon character. |
|
Back to top |
|
|
Moriah Advocate
Joined: 27 Mar 2004 Posts: 2365 Location: Kentucky
|
Posted: Tue Apr 13, 2010 2:06 pm Post subject: |
|
|
Thanks!
PS Its never too late if you watch topic for replies. _________________ The MyWord KJV Bible tool is at http://www.elilabs.com/~myword
Foghorn Leghorn is a Warner Bros. cartoon character. |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue Apr 13, 2010 3:11 pm Post subject: |
|
|
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 |
|
|
BillyBoy Tux's lil' helper
Joined: 26 Nov 2003 Posts: 101 Location: USA
|
Posted: Thu Jul 15, 2010 5:20 pm Post subject: xterm font specification - fontpath |
|
|
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 |
|
|
kklatt n00b
Joined: 25 Oct 2004 Posts: 20
|
Posted: Wed Jan 18, 2017 5:36 pm Post subject: |
|
|
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 |
|
|
|