Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

[SOLVED] rxvt-unicode and i3blocks display texts strangely

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
toku
n00b
n00b
User avatar
Posts: 43
Joined: Sat Jan 12, 2019 3:22 am
Location: Kanagawa, Japan
Contact:
Contact toku
Website

[SOLVED] rxvt-unicode and i3blocks display texts strangely

  • Quote

Post by toku » Thu Feb 02, 2023 10:48 am

Hi all. I have recently noticed that rxvt-unicode and i3blocks are displaying text strangely. Specifically, the text is not displayed in the specified font.
When I run urxvt from the terminal, I get the following warning message.

Code: Select all

urxvt: unable to calculate font width for 'Source Code Pro:slant=0:weight=200:pixelsize=18:minspace=True', using max_advance_width.
urxvt: unable to calculate font width for 'Font Awesome 5 Free:slant=0:weight=200:pixelsize=18:minspace=True', using max_advance_width.
urxvt: unable to calculate font width for 'PowerlineSymbols:slant=0:weight=200:pixelsize=18:minspace=True', using max_advance_width.
urxvt: unable to calculate font width for 'Hack:slant=0:weight=200:pixelsize=18:minspace=True', using max_advance_width.
.

I am using rxvt-unicode with the same .Xresources on my laptop too, and the text displays correctly there.
As for screenshots and other logs, here they are: https://gist.github.com/toku-sa-n/3b36a ... 9ae061ca22
What should I do? Thank you in advance.
Last edited by toku on Tue Mar 21, 2023 3:08 am, edited 1 time in total.
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

  • Quote

Post by mike155 » Thu Feb 02, 2023 12:13 pm

Most probably, a few USE flags are missing.

Your profile is "default/linux/amd64/17.1". Why don't you use a desktop profile?

Code: Select all

eselect profile list
eselect profile set <n>
emerge --update --deep --changed-use -av @world
Top
toku
n00b
n00b
User avatar
Posts: 43
Joined: Sat Jan 12, 2019 3:22 am
Location: Kanagawa, Japan
Contact:
Contact toku
Website

  • Quote

Post by toku » Fri Feb 03, 2023 3:18 am

Thanks for the reply. Unfortunately, your commands didn't solve the problem. The result is the same as before. I'm checking my USE flags.
Top
toku
n00b
n00b
User avatar
Posts: 43
Joined: Sat Jan 12, 2019 3:22 am
Location: Kanagawa, Japan
Contact:
Contact toku
Website

  • Quote

Post by toku » Tue Mar 21, 2023 3:08 am

I ended up setting the font size explicitly by

Code: Select all

xft:Source\ Code\ Pro:size=13
.
For future readers who are struggling with this problem, here is what I found.
- Without specifying the font size, urxvt printed texts incorrectly. If you run it on the console, you'll see error messages like in my first post.
- Specifying the font size solved the problem.
- Listing Source Code Pro as the second font did not print error messages. That is,

Code: Select all

URxvt.font: xft:Hack,xft:Source\ Code\ Pro
worked without error messages.
- I didn't have to specify font sizes for fonts other than Source Code Pro. Only Source Code Pro had the problem.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic