You are not logged in.
I am having trouble using bitmap fonts with urxvt.
The fonts are not displayed properly and it seems to lag while scrolling. The output comes quite slowly line by line.
There is no such problem with xft fonts. xft fonts are displayed fine and scrolling is smooth.
Screenshot: http://i.imgur.com/WGC4ez5.png
The font used is tewi. It renders fine in bar and dzen2, but has problems in urxvt
I am using compton and infnality repo. Disabling compton has no effect.
EDIT 1: The render issue was resolved. It was a matter of letter spacing.
EDIT 2: Only tewi and uushi produce the lag. Seems an issue with the fonts themselves.
EDIT 3: webm showing lag issue
.Xresources
!----------------------------------------------------
! color settings
!----------------------------------------------------
#include "/home/siddharth/.config/termcolors/solarized_light"
!---------------------------------------------------
! urxvt config settings
!---------------------------------------------------
URxvt*geometry: 80x21
! xft fonts
!URxvt*font: xft:dejavu sans mono for powerline:size=9:antialias=false:hinting=false:autohint=false
!URxvt*boldFont: xft:dejavu sans mono for powerline:bold:size=9:antialias=false:hinting=false:autohint=false
URxvt*font: -lucy-tewi-medium-r-normal--11-90-75-75-p-58-iso10646-1
URxvt*boldFont: -lucy-tewi-bold-r-normal--11-90-75-75-p-58-iso10646-1
URxvt*letterSpace: -1
URxvt.savelines: 500
URxvt*scrollBar: false
! do not scroll with output
URxvt*scrollTtyOutput: false
! scroll in relation to buffer (with mouse scroll or Shift+Page Up)
URxvt*scrollWithBuffer: true
! scroll back to the bottom on keypress
URxvt*scrollTtyKeypress: true
! clipboard management
URxvt.perl-ext-common: default,clipboard
URxvt.keysym.M-c: perl:clipboard:copy
URxvt.keysym.M-v: perl:clipboard:paste
!---------------------------------------------------
! Font Rendering
!---------------------------------------------------
Xft.dpi: 96
Xft.antialias: 1
Xft.rgba: rgb
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hinting: 1
Xft.hintstyle: hintfull
! dzen2
dzen2.font: -*-tamsynmod-medium-r-normal--*-*-*-*-*-*-*-*
dzen2.foreground: #dddddd
dzen2.background: #989898Last edited by easysid (2015-02-08 08:50:15)
Desktop screenshots :: Origami :: github
Offline
I use terminus and have no lag -- does yours lag with that font?
URxvt.font: -*-terminus-medium-r-*-*-12-*-*-*-*-*-*-*Jin, Jîyan, Azadî
Offline
I do not have terminus specifically, but have the terminus12 mod and the terminess powerline font. I tried them, but the issue remains.
URxvt.font: -beastie-terminus12-medium-r-normal--12-120-72-72-c-60-iso8859-1OR
URxvt.font: -xos4-terminesspowerline-medium-r-normal--12-120-72-72-c-60-iso10646-1Both lag and distortion are present.
Desktop screenshots :: Origami :: github
Offline
I'm not sure if this matters, but you're missing an asterisk in the font description. So you should rather have:
URxvt*font: -lucy-tewi-medium-r-normal-*-11-90-75-75-p-58-iso10646-1
URxvt*boldFont: -lucy-tewi-bold-r-normal-*-11-90-75-75-p-58-iso10646-1Notice the asterisk added between two adjacent dashes. It acts as a wildcard. You can use xfontsel to select fonts – it builds the appropriate XLFD string. For me, URxvt refuses to even start if I remove those asterisks.
Offline
I'm not sure if this matters, but you're missing an asterisk in the font description. So you should rather have:
URxvt*font: -lucy-tewi-medium-r-normal-*-11-90-75-75-p-58-iso10646-1 URxvt*boldFont: -lucy-tewi-bold-r-normal-*-11-90-75-75-p-58-iso10646-1Notice the asterisk added between two adjacent dashes. It acts as a wildcard. You can use xfontsel to select fonts – it builds the appropriate XLFD string. For me, URxvt refuses to even start if I remove those asterisks.
This is the font I get from xlsfonts. Adding the asterix leads to urxvt not even starting.
$: xlsfonts | grep tewi
-lucy-tewi-bold-r-normal--0-0-75-75-p-0-iso10646-1
-lucy-tewi-bold-r-normal--11-90-75-75-p-58-iso10646-1
-lucy-tewi-medium-r-normal--0-0-75-75-p-0-iso10646-1
-lucy-tewi-medium-r-normal--11-90-75-75-p-58-iso10646-1Desktop screenshots :: Origami :: github
Offline
Are you declaring $TERM in any of your shell profiles?
EDIT: How did you install these bitmap fonts?
If you installed them manually, then try terminus:
# pacman -Syu terminus-fontLast edited by Head_on_a_Stick (2015-02-03 10:32:37)
Jin, Jîyan, Azadî
Offline
Yes, I installed them manually. All my bitmap fonts are in ~/.fonts/bitmap/ directory.
They do work fine, except for this rxvt-unicode thing.
I'll try and install the required font packages from repos and aur.
Desktop screenshots :: Origami :: github
Offline
The culprit was this line
URxvt*letterSpace: -1Got it from this thread.
Removing it makes the font render fine. However there is still the issue of lag with some fonts.
Terminus (and derivatives) work fine. Tewi, on the other hand, does not.
I deleted all the manually installed fonts and installed the packages from repos and aur.
Fonts still show up with a -- (double hyphen) in them (?)
┌─(siddharth@lucy)─(~)
└──╼ xlsfonts | grep -E 'terminus.*-12-'
-xos4-terminus-bold-r-normal--12-120-72-72-c-60-iso10646-1
-xos4-terminus-bold-r-normal--12-120-72-72-c-60-iso8859-1
-xos4-terminus-bold-r-normal--12-120-72-72-c-60-iso8859-13
-xos4-terminus-bold-r-normal--12-120-72-72-c-60-iso8859-15
:
-xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso10646-1
-xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-1
-xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-13
-xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-15
:Desktop screenshots :: Origami :: github
Offline
The culprit was this line
URxvt*letterSpace: -1Got it from this thread.
Removing it makes the font render fine. However there is still the issue of lag with some fonts.
Terminus (and derivatives) work fine. Tewi, on the other hand, does not.
I deleted all the manually installed fonts and installed the packages from repos and aur.
Fonts still show up with a -- (double hyphen) in them (?)
The double hyphen is ok – that was my mistake. Have you rebooted after removing the fonts? The X font cache probably needs to be refreshed. If the fonts still show up even though you have removed them, you could check every directory in your font path for any leftover font files.
xset qwill tell you the font path, among other information.
Offline
Ah, OK.
I did not reboot, but restarted the X server, which found the new fonts.
I'll test if any other common fonts show the lag issue.
Desktop screenshots :: Origami :: github
Offline
I tested quite a few fonts, all of them work fine except for tewi and uushi. These fonts produce lag in urxvt. I can see line by line drawing of the output, even when I switch desktops.
Anyone using these fonts successfully?
Last edited by easysid (2015-02-07 17:56:08)
Desktop screenshots :: Origami :: github
Offline
Why don't you try installing tewi from the AUR?
https://aur.archlinux.org/packages/bdf-tewi-git/
Jin, Jîyan, Azadî
Offline
Why don't you try installing tewi from the AUR?
https://aur.archlinux.org/packages/bdf-tewi-git/
I did install tewi and all other available fonts from aur and repos (post #8). The issue remains.
Last edited by easysid (2015-02-07 18:24:47)
Desktop screenshots :: Origami :: github
Offline
I first tested the tewi fonts with urxvt and I did not notice any lag. The font is very tiny but legible with my hardware. It's also a proportional font; proportional fonts are not often used in terminal emulators.
I also tried easysid's .Xresources urxvt configuration: the lines from 'URxvt*geometry: 80x21' through 'URxvt*scrollTtyKeypress: true '. I still did not experience any lag.
I do not have the perl clipboard extension installed. You might try launching urxvt after commenting out the perl extension lines.
It is troubling that using the XLFD font name with an asterisk caused urxvt to abort. The asterisk is a wildcard that should return nothing for this font. The font name can be checked using 'xlsfonts'. The returned name is what will be used by apps where that font name is specified.
$ xlsfonts -fn "-lucy-tewi-medium-r-normal-*-11-90-75-75-p-58-iso10646-1"
-lucy-tewi-medium-r-normal--11-90-75-75-p-58-iso10646-1Offline
Still waiting for an answer to this...
Are you declaring $TERM in any of your shell profiles?
Offline
Still waiting for an answer to this...
Head_on_a_Stick wrote:Are you declaring $TERM in any of your shell profiles?
Sorry, I forgot to answer that. No. I am not declaring TERM in any of the shell files. I checked in $HOME as well as in /etc
$: echo $TERM
rxvt-unicode-256colorI launched urxvt using a new .Xrerources, containing just the font declarations. I still had the issue with tewi and uushi.
I have added this webm to better show the lag issue. You can see that the output seems to be redrawn when I swap desktops.
Last edited by easysid (2015-02-08 10:47:47)
Desktop screenshots :: Origami :: github
Offline
Are you trying to comment lines in your .Xresources file using C-style comments – /* ... */ ? That's what I see on the last screenshot. This will not work and could cause all sorts of buggy behavior. Comments in X resource file begin with an exclamation point. Other lines, including lines with C-style comment markers, will still be parsed, or an attempt will be made to parse them.
I would be surprised if xrdb did not issue warnings when (if) you attempted to load or merge any changed settings.
To answer jasonwryan's question, please report the return from the command echo $TERM from within urxvt.
Offline
Are you trying to comment lines in your .Xresources file using C-style comments – /* ... */ ? That's what I see on the last screenshot.
For the purpose of this screencast, yes, that is how vim commented them out (I changed my commentry plugin). Before that, I was using ! to comment out. Also tried a barebones file with just the font defs, didn't work. There were no errors when I merged the file and changes were applied. But the video achieves the purpose of demoing the issue.
To answer jasonwryan's question, please report the return from the command echo $TERM from within urxvt.
Sorry didn't know that. Here it is
$: echo $TERM
rxvt-unicode-256colorDesktop screenshots :: Origami :: github
Offline