You are not logged in.
In my .Xresources file I've set the font I want to use, but yet it wont load it no matter what I try, it does with with urxvt -fn and .Xresources is loaded otherwise (colors, tabs, etc).
And even if I load the font I want and it is specifically for an language like Japanese or Korean it wont show those letters (unless I'm loading the wrong font?) and instead either junk letters or an "?".
my .Xreasources file:
URxvt.perl-ext-common: default,tabbedex,clipboard,matcher
URxvt.tabbed.title: no
Urxvt.imLocale: ja_JP.UTF-8
Urxvt.font : xft:GohuFont:size=10,\
xft:IPAPGothic=11:antialias=true,\
xft:Kochi Gothic:antialias=trueThanks in advance!
Last edited by Stringer (2013-01-01 12:40:51)
Offline
URxvt not Urxvt. Resource class names are sensitive to capitalization.
I just remembered, I can't get my urxvt settings to work when I put them in ~/.Xresources. I have to put them in ~/.Xdefaults.
Last edited by thisoldman (2012-12-26 10:51:13)
Offline
URxvt not Urxvt. Resource class names are sensitive to capitalization.
I just remembered, I can't get my urxvt settings to work when I put them in ~/.Xresources. I have to put them in ~/.Xdefaults.
Good thing someone got good eyes, thanks with the syntax check.
Does this include everything realted to urxvt or just part of the configuration (like fonts or similar)?
Offline
I only tried moving all urxvt configs to .Xresources. This was in the past two weeks.
I wouldn't want to split an app's configuration files. Both my xterm and my urxvt configs are in my .Xdefaults, they share a common color scheme so I only write it once. https://bbs.archlinux.org/viewtopic.php … 9#p1202979
Offline
I meant more what works and what does not with the .Xresources file.
But from what I understand when it comes to non-latin letters it's basically just having a alternative font for it, yes?
Because even now when I did get the font to work, it still wont show non-latin letters.
Last edited by Stringer (2012-12-26 15:56:52)
Offline
I noticed a few more errors in your font naming. You have:
Urxvt.font : xft:GohuFont:size=10,\
xft:IPAPGothic=11:antialias=true,\
xft:Kochi Gothic:antialias=trueI think this is what you mean:
Urxvt.font: xft:GohuFont:size=10, \
xft:IPAPGothic:size=11:antialias=true, \
xft:Kochi Gothic:antialias=trueYou missed the :size for IPAPGothic and the line continuation slash should be preceded by a space.
This is sliding toward off-topic, but here goes —
As for what works and what doesn't work in .Xresources or .Xdefaults, I truly don't know for certain. After Googling, I think some applications, such as urxvt, will ignore .Xresources if .Xdefaults exists. My Google results: https://www.google.com/search?q=.Xresou … .Xdefaults
The first two paragraphs in the reply on Super User give me some more understanding: http://superuser.com/questions/243914/x … -xdefaults.
And this Arch forum thread is also helpful for my understanding: https://bbs.archlinux.org/viewtopic.php?id=71742.
Offline
Thanks again for seeing the typos, but still can't see those bloody non-latin letters..
Hm.. What's strange is that xterm seems to work just fine with at least some non-latin symbols (mainly anything with ¨´`), but urxvt neither of those work (if I type something it just blocks it).
Last edited by Stringer (2012-12-27 05:48:04)
Offline
I have a typo too, I forgot to capitalize "URxvt" correctly. Ack!
Okay, I've commented out my own fonts and pasted this into my ~/.Xdefaults (I do not have Kochi Gothic):
URxvt.font: xft:GohuFont:size=10, \
xft:IPAPGothic:size=11:antialias=trueI save the changes and run
$ xrdb -merge ~/.XdefaultsI open a new instance of urxvt. I used Google Translate for some quick phrases and I then pasted the glyphs into the terminal:
As for the input method you're using, I have no idea if that is correct.
Offline
I have a typo too, I forgot to capitalize "URxvt" correctly. Ack!
Okay, I've commented out my own fonts and pasted this into my ~/.Xdefaults (I do not have Kochi Gothic):
URxvt.font: xft:GohuFont:size=10, \ xft:IPAPGothic:size=11:antialias=trueI save the changes and run
$ xrdb -merge ~/.XdefaultsI open a new instance of urxvt. I used Google Translate for some quick phrases and I then pasted the glyphs into the terminal:
http://ompldr.org/vZ3Vocg/urxvt_japanese.png
As for the input method you're using, I have no idea if that is correct.
I'm just copy pasting / ls:ing a directory with japanese.
Although if I do load the font with the -fn flag it has a rather odd whitespace between each character and of course does not show japanese letters.
Also could you post your locale, locale.conf, locale.gen?
Last edited by Stringer (2012-12-28 10:43:01)
Offline
Your locale settings shouldn't affect font display.
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=Below is my complete urxvt setup, except for terminal colors (link is in a previous post). I force a normal font for bold and italic fonts and instead use color to distinguish emphasized text. Turning off bold and italic allows use of an anti-aliased small typeface. I can't turn off underlining in urxvt, so I've tried to make it as unobtrusive as possible.
! URxvt
URxvt*loginShell: true
URxvt*geometry: 90x38
URxvt*scrollBar: false
URxvt*saveLines: 32767
URxvt*scrollTtyKeypress: true
URxvt*scrollTtyOutput: true
URxvt*jumpScroll: true
URxvt*skipScroll: true
URxvt*skipBuiltinGlyphs: true
!URxvt.font: xft:GohuFont:size=10, \
! xft:IPAPGothic:size=11:antialias=true
URxvt*font: xft:DejaVu Sans Mono:style=Book:size=8, \
xft:Droid Sans Fallback:style=Regular, \
xft:Droid Sans Japanese:style=Regular, \
xft:unifont:style=Medium
URxvt*boldFont: xft:DejaVu Sans Mono:style=Book:size=8, \
xft:Droid Sans Fallback:style=Regular, \
xft:Droid Sans Japanese:style=Regular, \
xft:unifont:style=Medium
URxvt*italicFont: xft:DejaVu Sans Mono:style=Book:size=8, \
xft:Droid Sans Fallback:style=Regular, \
xft:Droid Sans Japanese:style=Regular, \
xft:unifont:style=Medium
URxvt*boldItalicFont: xft:DejaVu Sans Mono:style=Book:size=8, \
xft:Droid Sans Fallback:style=Regular, \
xft:Droid Sans Japanese:style=Regular, \
xft:unifont:style=Medium
URxvt*colorIT: rgb:e4/e4/e4
URxvt*colorBD: rgb:82/a4/d3
URxvt*colorUL: rgb:e4/e4/e4
URxvt*underlineColor: rgb:58/58/58I'm still font-shopping for the right fonts for me, but this setup works to display most encodings.
Offline
Manage to solve it by restarting Xorg.
Seems like either .Xresources or Xorg needs to restart for some reason before new unicode can be displayed.
Offline