You are not logged in.
Ok, so I have downloaded a .ttf font and placed in a number of folders in
/usr/share/fonts/
then I updated the cache and updated the font path, but for some reason I still can't use the font as a default for urxvt through ~/.Xdefaults
and when I run
urxvt
i get
urxvt: unable to load base fontset, please specify a valid one using -fn, aborting.
here is my .Xdefaults
! ----
! Font
! ----
URxvt*font: --iris-medium-r-normal--10-100-72-72-m-60-iso8859-1
URxvt*boldFont: --iris-medium-r-normal--10-100-72-72-m-60-iso8859-1
! -------
! Colours
! -------
#include "/home/aestark/.xcolours/victorianish-blue"
! -----------------
! Fake transparency
! -----------------
!URxvt.transparent: true
!URxvt.shading: 80
! ------------
! Misc options
! ------------
URxvt.termName: rxvt-256color
URxvt*urgentOnBell: true
URxvt*visualBell: true
URxvt*skipBuiltinGlyphs: true
URxvt*borderless: true
URxvt*scrollBar: false
URxvt*saveLines: 666
my .xinitrc
exec scrotwm
xset +fp /usr/share/fonts/local
xset +fp /usr/share/fonts/TTF
anyone have an idea what the problem is?
thankss
Last edited by eriksatie (2011-07-10 16:25:12)
Offline
Oitrc
exec scrotwm xset +fp /usr/share/fonts/local xset +fp /usr/share/fonts/TTF
The `exec' call is the last command the shell executes when parsing .xinitrc. So you have to put all other commands before it:
xset +fp /usr/share/fonts/local
xset +fp /usr/share/fonts/TTF
xset fp rehash
exec scrotwm
Offline
eriksatie wrote:Oitrc
exec scrotwm xset +fp /usr/share/fonts/local xset +fp /usr/share/fonts/TTF
The `exec' call is the last command the shell executes when parsing .xinitrc. So you have to put all other commands before it:
xset +fp /usr/share/fonts/local xset +fp /usr/share/fonts/TTF xset fp rehash exec scrotwm
Thank you for the tip.
But this did not help at all, when I run the rxvt command I still get the same output.
When I made this thread I was looking at this one: https://bbs.archlinux.org/viewtopic.php?id=6551
and it addressed the same problem it seems but I got lost in translation at the end and have no idea what I'm supposed to do, anyone have an idea?
also, I noticed that when I run urxvt like this
urxvt -fn "xft:Iris-10"
I get a terminal with my font but it's spaced out too far and a bit blurry. I want to get the font like I have in Xdefaults, though, since it's more detailed
hopefully this helps you help me
Last edited by eriksatie (2011-07-08 13:21:06)
Offline
Are those font names complete and correct? Try replacing
URxvt*font: --iris-medium-r-normal--10-100-72-72-m-60-iso8859-1
URxvt*boldFont: --iris-medium-r-normal--10-100-72-72-m-60-iso8859-1
with
URxvt*font: -*-iris-medium-r-normal-*-10-100-72-72-m-60-iso8859-1
URxvt*boldFont: -*-iris-medium-r-normal-*-10-100-72-72-m-60-iso8859-1
Edit: Missed some asterisks
Last edited by azleifel (2011-07-08 22:45:33)
Offline
Are those font names complete and correct? Try replacing
URxvt*font: --iris-medium-r-normal--10-100-72-72-m-60-iso8859-1 URxvt*boldFont: --iris-medium-r-normal--10-100-72-72-m-60-iso8859-1
with
URxvt*font: -*-iris-medium-r-normal-*-10-100-72-72-m-60-iso8859-1 URxvt*boldFont: -*-iris-medium-r-normal-*-10-100-72-72-m-60-iso8859-1
Edit: Missed some asterisks
Thank for the reply but that doesn't change anything.
still get the same output from urxvt
Offline
In my experience, "xft:blah" very often gets me spaced-out fonts in urxvt, so I just avoid using that.
So instead of doing:
urxvt -fn "xft:Iris-10"
Try:
urxvt -fn --iris-medium-r-normal--10-100-72-72-m-60-iso8859-1
Also, did you run `xrdb ~/.Xdefaults` after editing ~/.Xdefaults?
To check if the iris font is seen by the X server:
xlsfonts | grep iris
I suppose you have it.
On a slightly different note, you should:
1. Consider packaging and installing your fonts through the standard Arch Build System procedures (in the case of iris, it's shipped with AUR/sgi-fonts). Otherwise, it's a mess to manage.
2. Don't use xset to add font path, use the FontPath option in xorg.conf instead.
Last edited by lolilolicon (2011-07-09 01:40:54)
This silver ladybug at line 28...
Offline
In my experience, "xft:blah" very often gets me spaced-out fonts in urxvt, so I just avoid using that.
So instead of doing:eriksatie wrote:urxvt -fn "xft:Iris-10"
Try:
urxvt -fn --iris-medium-r-normal--10-100-72-72-m-60-iso8859-1
Also, did you run `xrdb ~/.Xdefaults` after editing ~/.Xdefaults?
To check if the iris font is seen by the X server:
xlsfonts | grep iris
I suppose you have it.
On a slightly different note, you should:
1. Consider packaging and installing your fonts through the standard Arch Build System procedures (in the case of iris, it's shipped with AUR/sgi-fonts). Otherwise, it's a mess to manage.
2. Don't use xset to add font path, use the FontPath option in xorg.conf instead.
I will try what you said in a moment. Just wanted to say that I didn't know that iris was in AUR. I was looking through the font section to see if any package had it, but didn't see it. Is there a link to a place to search if they fonts are in AUR?
Thanks
Offline
In my experience, "xft:blah" very often gets me spaced-out fonts in urxvt, so I just avoid using that.
So instead of doing:eriksatie wrote:urxvt -fn "xft:Iris-10"
Try:
urxvt -fn --iris-medium-r-normal--10-100-72-72-m-60-iso8859-1
Also, did you run `xrdb ~/.Xdefaults` after editing ~/.Xdefaults?
To check if the iris font is seen by the X server:
xlsfonts | grep iris
I suppose you have it.
On a slightly different note, you should:
1. Consider packaging and installing your fonts through the standard Arch Build System procedures (in the case of iris, it's shipped with AUR/sgi-fonts). Otherwise, it's a mess to manage.
2. Don't use xset to add font path, use the FontPath option in xorg.conf instead.
Ok, that first command gets me the same thing.
and when I run
`xrdb ~/.Xdefaults`
i don't get any output
also i installed that sgi-font package from AUR but how do I use the fonts now? they don't even show up in xfontsel
Offline
i don't get any output
It outputs nothing if there're no errors. (You should strip the backticks, if not already...). The command
xrdb ~/.Xdefaults
reloads the X resources with the new definitions you put in ~/.Xdefaults; always run it after you change things in ~/.Xdefaults.
also i installed that sgi-font package from AUR but how do I use the fonts now? they don't even show up in xfontsel
Are you saying you can't find iris in xfontsel?
The issue probably is the FontPath. Try:
xset +fp /usr/share/fonts/misc
xset fp rehash
then either look for iris in xfontsel, or using the xlsfonts command I posted earlier.
(You can verify the FontPath by looking at the output of `xset q`.)
As I mentioned before, you should set it in xorg.conf using the FontPath option (X will pick it up if you restart it).
Last edited by lolilolicon (2011-07-09 06:21:42)
This silver ladybug at line 28...
Offline
I'm not sure but i think that urxvt has a bug related to font settings, in AUR there is patched urxvt.
Greetings
P.S. Sorry for the short answer : )
Offline
i tried a bunch of stuff
it seems that the iris font is just not compatible without using xft
i'm just gonna use something else thanks anyways
Offline
it seems that the iris font is just not compatible without using xft
No, iris is totally compatible.
For testing, I installed the sgi-fonts, after which, I did
$ xlsfonts | grep iris # No output: X cannot find iris.
$ xset fp rehash
$ xlsfonts | grep iris | uniq # Yes, now X can find it.
-sgi-iris-medium-r-normal--0-0-72-72-m-0-iso8859-1
-sgi-iris-medium-r-normal--10-100-72-72-m-60-iso8859-1
-sgi-iris-medium-r-normal--12-120-72-72-m-80-iso8859-1
-sgi-iris-medium-r-normal--13-130-72-72-m-90-iso8859-1
$ urxvt -fn -sgi-iris-medium-r-normal--10-100-72-72-m-60-iso8859-1
What I got:
i tried a bunch of stuff
You'd better state what you did. I don't think you followed my suggestions -- you didn't report back the results.
xset +fp /usr/share/fonts/misc
xset fp rehash
Edit: I'm also able to get the same result by using:
urxvt -fn xft:Iris:style=Regular:pixelsize=10
Last edited by lolilolicon (2011-07-10 01:40:37)
This silver ladybug at line 28...
Offline
eriksatie wrote:it seems that the iris font is just not compatible without using xft
No, iris is totally compatible.
For testing, I installed the sgi-fonts, after which, I did
$ xlsfonts | grep iris # No output: X cannot find iris. $ xset fp rehash $ xlsfonts | grep iris | uniq # Yes, now X can find it. -sgi-iris-medium-r-normal--0-0-72-72-m-0-iso8859-1 -sgi-iris-medium-r-normal--10-100-72-72-m-60-iso8859-1 -sgi-iris-medium-r-normal--12-120-72-72-m-80-iso8859-1 -sgi-iris-medium-r-normal--13-130-72-72-m-90-iso8859-1 $ urxvt -fn -sgi-iris-medium-r-normal--10-100-72-72-m-60-iso8859-1
What I got:
http://ompldr.org/vOWY5aQeriksatie wrote:i tried a bunch of stuff
You'd better state what you did. I don't think you followed my suggestions -- you didn't report back the results.
myself wrote:xset +fp /usr/share/fonts/misc
xset fp rehashEdit: I'm also able to get the same result by using:
urxvt -fn xft:Iris:style=Regular:pixelsize=10
ok, it seems installed sgi-fonts incorrectly
I did it the right way and i'm able to get my font how I need it by using
urxvt -fn -sgi-iris-medium-r-normal--10-100-72-72-m-60-iso8859-1
but still it won't load automatically after I edited my .Xdefaults
I get the same output as above
and i already put the xset +fp /usr/share/fonts/misc and xset fp rehash in my xinitrc
here's my .Xdefaults file
! ----
! Font
! ----
URxvt*font: -sgi-iris-medium-r-normal--10-100-72-72-m-60-iso8859-1
URxvt*boldFont: -sgi-iris-medium-r-normal--10-100-72-72-m-60-iso8859-1
! -------
! Colours
! -------
#include "/home/aestark/.xcolours/victorianish-blue"
! -----------------
! Fake transparency
! -----------------
!URxvt.transparent: true
!URxvt.shading: 80
! ------------
! Misc options
! ------------
URxvt.termName: rxvt-256color
URxvt*urgentOnBell: true
URxvt*visualBell: true
URxvt*skipBuiltinGlyphs: true
URxvt*borderless: true
URxvt*scrollBar: false
URxvt*saveLines: 666
URxvt.buffered: true
see anything wrong?
also thanks for helping me this far, im happy i can at least see the font how it supposed to look
EDIT: it works AUTOMATICALLY now, IDK WHAT I DID BUT THANKS SO MUCH FOR THE HELP <3
now one last question
how to make rxvt my default terminal instead of xterm?
Last edited by eriksatie (2011-07-10 06:27:54)
Offline
but still it won't load automatically after I edited my .Xdefaults
As I said, you need to do the xrdb thing after editing .Xdefaults to tell X about the new resources definitions.
Restarting X will do too, of course, which I suspect was what you did that got it working "AUTOMATICALLY".
and i already put the xset +fp /usr/share/fonts/misc and xset fp rehash in my xinitrc
It's OK to do it that way, but it's not the most appropriate one.
I repeat, use the FontPath option in xorg.conf, and get rid of those two xset commands in your .xinitrc.
For more information, man xorg.conf.
how to make rxvt my default terminal instead of xterm?
What is a "default terminal"?
Anyway, such a configuration most likely depends on what desktop environment or window manager you use.
Consult the relevant man/wiki pages for your answer.
If you really cannot figure it out _after_ RTFM, open another thread for it.
This silver ladybug at line 28...
Offline
EDIT: it works AUTOMATICALLY now
In that case, please mark your thread solved.
ᶘ ᵒᴥᵒᶅ
Offline