You are not logged in.

#1 2020-02-23 08:16:10

suija
Member
Registered: 2013-06-23
Posts: 34

[SOLVED] Urxvt displaces my font 1 pixel to the left

So, awhile ago I made myself super nice bitmap font that worked perfectly and then pango 1.44 came and broke it, so I had to convert me font to .otb with fontforge if I wanted to continue using it. Then urxvt stopped playing nice and began to displace my whole new font 1 pixel to the left... Nice ranger devicons get cut of, powerline symbols dont align etc. It works fine under alacritty or gvim (and everywhere else) as you can see, so its not an issue with my conversion I think.
WCT4KNl.png
I have tried different versions of urxvt from AUR, tried changing .Xresource settings... no help.

Last edited by suija (2020-02-23 16:23:52)


..   ..- ... .   .- .-. -.-. ....   -... - .--

Offline

#2 2020-02-23 12:34:59

seth
Member
Registered: 2012-09-03
Posts: 50,924

Re: [SOLVED] Urxvt displaces my font 1 pixel to the left

Please replace the oversized image w/ a link/thumbnail (200x200 max)

urxvt doesn't use pango.
Are all fonts displaced or only your otb conversion?
Do you adjust the letterSpace parameter for urxvt?

Offline

#3 2020-02-23 13:19:18

suija
Member
Registered: 2013-06-23
Posts: 34

Re: [SOLVED] Urxvt displaces my font 1 pixel to the left

I just installed terminus-font-otb from pacman and yes same problem. But my old .bdf font is fine.
The letterSpace adjusts spacing between each character, my problem is in the character box.

Now that you mention it urxvt indeed doesn't seem to use pango, I can create 2 versions: old .bdf font for urxvt and .otb for everything else, but that is ugly solution.
If no one knows anything I will mark it as solved after a day or 2.

Last edited by suija (2020-02-23 14:23:17)


..   ..- ... .   .- .-. -.-. ....   -... - .--

Offline

#4 2020-02-23 15:41:43

seth
Member
Registered: 2012-09-03
Posts: 50,924

Re: [SOLVED] Urxvt displaces my font 1 pixel to the left

At what font size (for terminus)?
rxvt-unicode-cvs-patched-wideglyphs displays terminus.otb fine for the native resolutions (the interpolated ones are crap, esp. on the lower sizes, but well…)
"-letsp" does impact the letterbox and notably the cursor width (referring to the upscaled part of your screenshot)

Try

urxvt -letsp 4 -fn 'xft:Terminus-12'

to see the impact.

Offline

#5 2020-02-23 16:22:17

suija
Member
Registered: 2013-06-23
Posts: 34

Re: [SOLVED] Urxvt displaces my font 1 pixel to the left

No matter what letter spacing/font size I put, urxvt from pacman doesn't work. However rxvt-unicode-cvs-patched-wideglyphs actually has it fixed.
Funny thing is I did try that version but it comes with some weird letter spacing by default so I uninstalled it immediately after, thinking it is bugged in a different way. If I use that and set spacing to -1 everything is fine. Thank you.
I hope arch will provide fixed version in the future.

Last edited by suija (2020-02-23 16:27:17)


..   ..- ... .   .- .-. -.-. ....   -... - .--

Offline

#6 2020-02-23 16:36:58

seth
Member
Registered: 2012-09-03
Posts: 50,924

Re: [SOLVED] Urxvt displaces my font 1 pixel to the left

Don't hold your breath. I'm not sure whether uxvt is still actively maintained upstream.
When using a self-compiled version anyway, you might want to re-enable "--enable-pixbuf" in the PKGBUILD (for fancy background pixmaps - actually useful if you use several CLI tools and have some watermark image in your youtube-viewer, mutt, filemanager, … for visual distinction)

Offline

Board footer

Powered by FluxBB