You are not logged in.

#1 2022-06-13 12:58:47

r3veal
Member
Registered: 2022-02-19
Posts: 6

[SOLVED] Powerline fonts not working with URXVT in vim-airline.

I have installed the powerline fonts from https://github.com/powerline/fonts, and I have these fonts installed:
- ttf-dejavu 2.37+18+g9b5d1b2f-3
- ttf-fantasque-sans-mono 1.8.0-2
- ttf-hack 3.003-3
- ttf-nerd-fonts-symbols 2.1.0+36+gd0bf73a1-4

urxvt isn't showing some of the characters:
https://imgur.com/labBgpR
but xfce4-terminal showed all the characters after installing ttf-nerd-fonts:
https://imgur.com/An4cSoo

I use urxvt in daemon mode. and my window manager is awesome.

thank you for helping smile

This is my .Xresources:

!Colorscheme

! special
*.foreground:   #c5c8c6
*.background:   #1d1f21
*.cursorColor:  #c5c8c6

! black
*.color0:       #1d1f21
*.color8:       #969896

! red
*.color1:       #cc342b
*.color9:       #cc342b

! green
*.color2:       #198844
*.color10:      #198844

! yellow
*.color3:       #fba922
*.color11:      #fba922

! blue
*.color4:       #3971ed
*.color12:      #3971ed

! magenta
*.color5:       #a36ac7
*.color13:      #a36ac7

! cyan
*.color6:       #3971ed
*.color14:      #3971ed

! white
*.color7:       #c5c8c6
*.color15:      #ffffff

URxvt.font: xft:Hack:pixelsize=14:antialias=true
URxvt.letterSpace: 0
URxvt.lineSpace: 0
URxvt.geometry: 100x100
URxvt.internalBorder: 4
URxvt.cursorBlink: true
URxvt.cursorUnderline: false
URxvt.saveline: 4096
URxvt.scrollBar: false
URxvt.scrollBar_right: false
! Setting transparency and background
URxvt.depth: 32
URxvt.background: [85]#282828
! URxvt.background: #000000
URxvt.iso14755: false

!! URxvt Functions
URxvt.perl-ext-common: default,font-size,keyboard-select,pasta,matcher

!! Color URLs
URxvt.colorUL:	#4682B4

!! Matcher let us select urls and copy them or open then (USE ALT+U)
URxvt.url-launcher: firefox
URxvt.matcher.button: 1
URxvt.keysym.M-u: matcher:select

!! Keyboard-select
URxvt.keysym.Shift-Control-C:    perl:keyboard-select:activate
URxvt.keyboard-select.clipboard: true

!! Pasta (USE CONTROL+SHIFT+C TO PASTE)
URxvt.keysym.Shift-Control-V:    perl:pasta:paste

!! Font-size (USE CONTROL+J TO INCREASE / USE CONTROL+K TO DECREASE)
URxvt.keysym.C-j:       perl:font-size:decrease
URxvt.keysym.C-k:       perl:font-size:increase
URxvt.keysym.C-equal:   perl:font-size:reset

Last edited by r3veal (2022-06-13 14:25:51)

Offline

#2 2022-06-13 14:07:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,573

Re: [SOLVED] Powerline fonts not working with URXVT in vim-airline.

URxvt.font: xft:Hack:pixelsize=14:antialias=true

urxvt doesn't use freetype/fontconfig to resolve missing glyphs, you've to specify the fonts you want to use and in order as comma separated list, eg.

URxvt.font: xft:Source Code Pro:size=8:hinting=true,xft:Consolas:size=9:hinting=true,xft:DejaVu Sans:size=5:hinting=true

It also has the peculiar habit to ignore glyphs that don't fit into the standard box what can become a "problem" for variable-width or multiple fonts, you may want to check one of the patched versions, eg. https://aur.archlinux.org/packages/rxvt … wideglyphs

Offline

#3 2022-06-13 14:25:31

r3veal
Member
Registered: 2022-02-19
Posts: 6

Re: [SOLVED] Powerline fonts not working with URXVT in vim-airline.

Okay, Thank you! smile

Offline

Board footer

Powered by FluxBB