Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
using glyph icon fonts in rxvt-unicode
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
misc_g
n00b
n00b


Joined: 15 Feb 2015
Posts: 10

PostPosted: Thu Mar 31, 2016 9:09 am    Post subject: using glyph icon fonts in rxvt-unicode Reply with quote

Noob here. I installed icomoon font but I'm having problems making it work in rxvt-unicode.
What are the requirements in making such font work?
Quote:
x11-terms/rxvt-unicode-9.21::gentoo was built with the following:
USE="256-color focused-urgency font-styles mousewheel perl unicode3 vanilla xft -alt-font-width -blink -buffer-on-clear -fading-colors -iso14755 -pixbuf -secondary-wheel -startup-notification -wcwidth"

locale list
Quote:
Available targets for the LANG variable:
[1] C
[2] en_PH
[3] en_PH.iso88591
[4] en_US.utf8 *
[5] POSIX
[ ] (free form)

fc-list
Quote:
/home/master/.local/share/fonts/icomoon.ttf: icomoon:style=Regular
/home/master/.local/share/fonts/icomoon.woff: icomoon:style=Regular

.Xresources
Code:
! clean up urxvt, add keybinds
URxvt.intensityStyles: false
URxvt.scrollBar: false
URxvt.keysym.Shift-Up: command:\033]720;1\007
URxvt.keysym.Shift-Down: command:\033]721;1\007
URxvt.resize-font.smaller: C-Down
URxvt.resize-font.bigger: C-Up
URxvt.iso14755: false
URxvt.iso14755_52: false

! font
URxvt*font: xft:Droid\ Sans\ Mono\ Regular:size=10:antialias=true,xft:icomoon:antialias=true

! terminal padding
URxvt.internalBorder: 10

! uncomment for transparent terminal if you are ready to be made fun of in #rice
! URxvt.transparent:    true
! URxvt.shading:                15

! make otf / ttf fonts look pretty.  does not matter if you are using a bitmap font.
Xft.autohint: 0
Xft.lcdfilter:  lcddefault
Xft.hintstyle:  hintfull
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb

I tried it but it does not work. I suppose to pipe this to a status bar/panel.
Code:
echo -e '\ue901'
# the output is a rectangle instead of 

I know the font is detected because it works on my status bar but not in rxvt terminal


Last edited by misc_g on Sat Apr 02, 2016 7:08 am; edited 1 time in total
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2613

PostPosted: Fri Apr 01, 2016 1:57 pm    Post subject: Re: using glyph icon fonts in rxvt-unicode Reply with quote

misc_g wrote:
Code:

! font
URxvt*font: xft:Droid\ Sans\ Mono\ Regular:size=10:antialias=true,xft:icomoon:antialias=true

Where did you find this syntax? According to man 7 urxvt fontname is written without \
Back to top
View user's profile Send private message
misc_g
n00b
n00b


Joined: 15 Feb 2015
Posts: 10

PostPosted: Sat Apr 02, 2016 7:06 am    Post subject: Reply with quote

It still works even with \
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2613

PostPosted: Mon Apr 04, 2016 3:12 pm    Post subject: Reply with quote

misc_g wrote:
It still works even with \

Means you problem is solved?
Or have you been missing the unicode USE flag?
Back to top
View user's profile Send private message
Juippisi
Guru
Guru


Joined: 30 Sep 2005
Posts: 341
Location: /home

PostPosted: Tue Apr 05, 2016 12:20 pm    Post subject: Reply with quote

charles17 wrote:
misc_g wrote:
It still works even with \

Means you problem is solved?
Or have you been missing the unicode USE flag?


He posted his USE flags and unicode is enabled. I think he also means that the font is working even with backslashes.

I think Ive read glyphs can work with urxvt, but it requires specially-patched fonts in order to do so. Sorry Im not much of a help here, Id like to know how to do this myself.

Your
Code:
echo -e '\ue901'

works with konsole at least, so its urxvt setting...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum