You are not logged in.

#1 2014-11-08 22:01:33

StormHF
Member
Registered: 2014-09-26
Posts: 34

[SOLVED]Font not loading

The terminal is stuck at monospace. I would like it to go to gohufont.
It also won't load anything for Xresources.

URxvt.depth: 32
URxvt*termName:                       rxvt-256color
!URxvt*geometry:                      80x20
  
!URxvt*loginShell:           false
!URxvt*saveLines:            1024

URxvt*font:  -*-gohufont-medium-*-*--14-*-*-*-*-*-*-1,-*-stlarch-medium-r-*-*-10-*-*-*-*-*-*-*
URxvt*boldFont:  -*-gohufont-medium-*-*--14-*-*-*-*-*-*-1,-*-stlarch-medium-r-*-*-10-*-*-*-*-*-*-*         
URxvt*scrollBar:            false
URxvt*cursorBlink:          false
!URxvt*internalBorder:       20
!URxvt*perl-ext-common:      default,url-select,keyboard-select
1URxvt.url-select.launcher:  /usr/bin/dwb
!URxvt.url-select.launcher:  /usr/bin/urxvt -e elinks
!URxvt.url-select.underline: true
!URxvt.keysym.M-u:           perl:url-select:select_next
!URxvt.keysym.M-v:           perl:keyboard-select:activate

bigfont*font:                 -*-gohufont-medium-*-*--14-*-*-*-*-*-*-1,-*-stlarch-medium-r-*-*-10-*-*-*-*-*-*-*
bigfont*boldFont:             -*-gohufont-medium-*-*--14-*-*-*-*-*-*-1,-*-stlarch-medium-r-*-*-10-*-*-*-*-*-*-*
*background:                     #222222
*foreground:                     #eb903b
*color0:                         #222222
*color1:                         #8b3e2f
*color2:                         #526f33
*color3:                         #665847
*color4:                         #4a708b
*color5:                         #7a378b
*color6:                         #528b8b
*color7:                         #999999
*color8:                         #4c4c4c
*color9:                         #d75f00
*color10:                        #cee318
*color11:                        #eee685
*color12:                        #9ac0cd
*color13:                        #9f79ee
*color14:                        #79cdcd
*color15:                        #e8e9ca

Last edited by StormHF (2014-11-30 03:05:26)

Offline

#2 2014-11-08 22:26:55

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [SOLVED]Font not loading

Does that font string work if passed on the command line?  Have you merged Xresources with xrdb?  If not urxvt is not expected to read it - urxvt reads Xdefaults not Xresources.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2014-11-08 22:32:51

StormHF
Member
Registered: 2014-09-26
Posts: 34

Re: [SOLVED]Font not loading

well... I feel like an idiot.Thank you !

Offline

#4 2014-11-08 23:11:09

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED]Font not loading

I struggled with the difference between .Xdefaults and .Xresources.

Urxvt will read .Xdefaults only if .Xdefaults exists.  Without any .Xdefaults file, .Xresources will be used. If there is a(n) .Xdefaults, it is read and applied for each instance of urxvt. If .Xresources is used it is read only once.  That .Xresources is read from disk only once may be a slight efficiency advantage.

@StormHF, you have a typo in the code in your first post. I think you want that 1 to be a !.

1URxvt.url-select.launcher:  /usr/bin/dwb

Offline

#5 2014-11-08 23:21:33

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [SOLVED]Font not loading

Using Xresources can be more efficient as it is not reread every time the program starts, but urxvt never reads Xresources itself unless it is specified on the command line.  I just tested and confirmed, I renamed my ~/.Xdefaults to ~/temp and urxvt no longer had any of my settings, then I moved ~/temp to ~/.Xresources, and urxvt still didn't read my settings even though there was no ~/.Xdefaults file.  If you want to use ~/.Xresources it needs to be read in by xrdb (or some other program that will merge it into the current database).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2014-11-09 02:13:32

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED]Font not loading

Yes, if you use .Xresources, and not .Xdefaults, the changed urxvt resource settings have to be sent to the XA_RESOURCE_MANAGER using the xrdb -load or xrdb -merge commands.  The point I had hoped to make is that you either set urxvt resources with one or the other, not both.

Sidebar:
I actually configure urxvt using a .urxvt file. My .Xresources picks this file up with the line, # include ".urxvt". I find it more convenient to edit many small single application configuration files rather than one big configuration file with settings for many applications.

Offline

Board footer

Powered by FluxBB