LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   xterm faceName resource (https://www.linuxquestions.org/questions/slackware-14/xterm-facename-resource-492179/)

yakoub 10-13-2006 03:04 PM

xterm faceName resource
 
when i do xterm -fa "Luxi Mono" the font is good

but when writing in ~/.Xresource
xterm*faceName: "Luxi Mono" , then issue
xrdb -merge .Xresource
it doesn't work and i get default font in xterm
how do i configure xterm resource to use Luxi Mono ?

on the otherhand if i write xterm*faceName: courier
then i see courier with no problems

comprookie2000 10-14-2006 05:21 PM

From man xterm;

faceName (class FaceName)
Specify the pattern for fonts selected from the FreeType library if support for that library was compiled into xterm. There is no default. If not specified, or if there is no match for both normal and bold fonts, xterm uses the font and related resources.
try something like;
Code:

xterm*cursorColor: red
xterm*colorMode: true
xterm*pointerColor: yellow
xterm*background: black
xterm*foreground: white
xterm*saveLines:4500
xterm*geometry: 110x40+20+5
xterm*loginShell: True
xterm*font: -*-terminus-medium-*-*-*-16-*-*-*-*-*-iso8859-1

use xfonsel to pick a font.

yakoub 10-15-2006 10:45 AM

idiot
 
Quote:

Originally Posted by comprookie2000
From man xterm;

faceName (class FaceName)
Specify the pattern for fonts selected from the FreeType library if support for that library was compiled into xterm. There is no default. If not specified, or if there is no match for both normal and bold fonts, xterm uses the font and related resources.
try something like;
Code:

xterm*cursorColor: red
xterm*colorMode: true
xterm*pointerColor: yellow
xterm*background: black
xterm*foreground: white
xterm*saveLines:4500
xterm*geometry: 110x40+20+5
xterm*loginShell: True
xterm*font: -*-terminus-medium-*-*-*-16-*-*-*-*-*-iso8859-1

use xfonsel to pick a font.

you are an idiot , i didn't ask about all the resources you
wrote in your reply , only about faceName .
and i can run xterm -fa "Luxi Mono" and it uses the font i want
but the problem is when i write "Luxi Mono" as xterm*faceName

XavierP 10-15-2006 03:07 PM

Quote:

Originally Posted by yakoub
you are an idiot , i didn't ask about all the resources you
wrote in your reply , only about faceName .
and i can run xterm -fa "Luxi Mono" and it uses the font i want
but the problem is when i write "Luxi Mono" as xterm*fontName

  1. We do not condone name calling here
  2. I read Comprookie's answer as saying that answer you need is contained in what s/he posted - if you don't thin that's the answer, post why
  3. Play nicely - LQ is a community and, as such, we are all friends here.

yakoub 10-16-2006 06:29 AM

simple
 
the correction is simply not to use quotes :
[ xterm*faceName: Luxi Mono ]
not [ xterm*faceName: "Luxi Mono" ]

Quote:

Originally Posted by XavierP
[*]We do not condone name calling here

i withdraw from calling him idiot but
i still hold on saying his answer was very stupid
Quote:

Originally Posted by XavierP
[*]I read Comprookie's answer as saying that answer you need is contained in what s/he posted - if you don't thin that's the answer, post why

he quoted the manual but didn't point out where
that manual offers a solution , i have allready
wrote .Xresources and know which resource i need

then he wrote his own .Xresource example which
doesn't give faceName a different font than "Luxi Mono"
which i didn't ask about .

and xlsfont is not needed since faceName doesn't
use font name but pattern name and i have allready
run [ xterm -fa "Luxi Mono" ] so i know the font i want .
Quote:

Originally Posted by XavierP
[*]Play nicely - LQ is a community and, as such, we are all friends here.

i respect that but it doesn't mean we need to be
all spineless here and one should be allowed to
express his frustration from time to time ..

XavierP 10-16-2006 12:29 PM

Quote:

Originally Posted by yakoub
i respect that but it doesn't mean we need to be
all spineless here and one should be allowed to
express his frustration from time to time ..

Mmm, but do it offline. There is a difference between having a backbone and simply being rude. Especially on the internet, for goodness sake.

Anyway, glad you got it working.


All times are GMT -5. The time now is 06:46 AM.