You are not logged in.
I'm referring to what I've found via this question I asked on unix.stackexchange.
I've also asken #rxvt-unicode channel on libera.chat, and the answer was Enrico63: urxvt uses xft for display, you would need a patched xft library for that, standard xft only does black and white.
So I was wondering if rxvt-unicode wikipage should include this info. I mean, if I had read "does not support fancy icons", I might have changed my choice of which terminal emulator to use. Or not. But I mean, it is a valuable piece of info, a bit like whether a terminal emulator supports font resizing on the go.
Last edited by Enrico1989 (2022-08-30 17:48:43)
Offline
But I mean, it is a valuable piece of info, a bit like whether a terminal emulator supports font resizing on the go.
Er, no: those two things are not even remotely equivalent...
Offline
They are both features that can be implmented or missing. The two things are remotely equivalent, in that sense.
The dynamic font resizing is more important? Sure, I agree.
Offline
I'd first point out the missing support of wide chars, the peculiar habit of simply not rendering glyphs that don't fix into the monobox (unlike all other VTEs that simply render a mess, there's no good solution to this), the absence of pixbuf support in the repo build and the pleathora of patched versions in the AUR to cover this.
The reason why the color emoji situation isn't addressed in the wiki is probably that few or less people care.
You could raise it in the wiki's discussion page and absent objections add it, the forum is the entirely wrong place to discuss this.
Also fuck emojis.
Offline
Also fuck emojis.
This seems to be quite an incontrovertible answer. I'll mark the question as solved.
Offline
The answer was actually everything above that line.
You wonder whether the wiki should mention a certain aspect of a tool, but you asked on the forum instead of the wiki, where this would be relevant and where, absent response, you could just add that information yourself if you feel that it's important enough.
After all, it's a wiki.
"Fuck emojis" is just a ceterum censeo that is very much related to the subject of, but not the topic your question.
Offline
I know this has been marked as solved, but as an FYI, the support for this feature has been upstreamed in xft!
I'm french, don't mind my mistakes in english.
Offline
I know this has been marked as solved, but as an FYI, the support for this feature has been upstreamed in xft!
(Somehow I missed this so long ago.) Is this still relevant, if nothing happened on URxvt's side?
Last edited by Enrico1989 (2023-05-15 14:22:10)
Offline
From what I understand, urxvt calls the xft library to display text, so when xft is updated, urxvt gains the new ability without needing any modification.
Last edited by Erus_Iluvatar (2023-05-16 07:53:21)
I'm french, don't mind my mistakes in english.
Offline
From what I understand, urxvt calls the xft library to display text, so when xft is updated, urxvt gains the new ability without needing any modification.
I looked for `include/X11/Xft/Xft.h.in` in my system, found it, and verified that it contains the line `* Copyright © 2022 Thomas E. Dickey`, so I assume that change you referred to is in. However, I still see no icons working in urxvt?
Do you have suggestions as to how to proceed?
Offline
What do yo think the copyright line tells you?
pacman -Qi libxft
Also post your urxvt font configuration.
Offline
What do yo think the copyright line tells you?
It's the copyright line that was added with the submission Erus_Iluvatar referred to, no? I guess it's unlikely I end up having that copyright line and not the rest of the change...
pacman -Qi libxft
Name : libxft
Version : 2.3.8-1
Description : FreeType-based font drawing library for X
Architecture : x86_64
URL : https://xorg.freedesktop.org/
Licenses : custom
Groups : None
Provides : None
Depends On : fontconfig libxrender
Optional Deps : None
Required By : conky fltk pango rxvt-unicode tk xorg-x11perf
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 130.92 KiB
Packager : Andreas Radke <andyrtr@archlinux.org>
Build Date : Wed 19 Apr 2023 06:39:38 BST
Install Date : Wed 19 Apr 2023 20:30:49 BST
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
Also post your urxvt font configuration.
You mean the following line in the ~/.Xdefaults file?
URxvt*font: xft:DejaVuSansM Nerd Font Mono:size=12
Offline
"xrdb -q | grep" to see whether it applies.
Does the used font provide colored emojis?
Offline
"xrdb -q" gives empty output.
Offline
https://wiki.archlinux.org/title/X_resources
urxvt -fn 'xft:DejaVuSansM Nerd Font Mono:size=12'
Does the used font provide colored emojis?
Offline
No, it doesn't
Sorry, I think I've misunderstood the question.
Are you asking whether the terminal launched with the command you suggest shows the emojis? If so, then the answer is no, it doesn't show the emojis.
If instead you're asking whether that font is supposed to be able to show the emojis, then I think so, but I'll double check with another terminal emulator.
Last edited by Enrico1989 (2023-05-17 19:06:11)
Offline
I think so
Link to the font?
urxvt does not use fontconfig for glyph sustitution, other terminals are not necessarily proof of what you see.
Alternatively (or also) post a codepoint (utf-8 hexadecimal number) for the emoji you'd like to see.
Also maybe report the thread for moving, this has nothing to do w/ forum or wiki (anymore)
Offline
I've reported the thread as you suggested.
The following should print a banana and a rocket (here you can see the result with urxvt on the left and xfce-terminal on the right; the top left config file is a bit outdate in the sense that recently the font name changed.)
echo -e "\U1f34c\U1f680"
Last edited by Enrico1989 (2023-05-17 19:43:41)
Offline
Because of the banana incident we'll ignore that one
fc-list :charset=1f680
Offline
That gives
/usr/share/fonts/noto/NotoColorEmoji.ttf: Noto Color Emoji:style=Regular
but if I try starting urxvt with that,the two emojis are fine, but the text is entirely unreadable (Big tall rectangles for each character..)
Offline
urxvt -fn 'xft:DejaVuSansM Nerd Font Mono:size=12,xft:Noto Color Emoji:size=9'
nb. the second font is smaller in an effort to fit it into the glyph box (for sure)
You may try one of the patched urxvt variants from the AUR for more lenient glyph handling.
Offline
I've reported the thread as you suggested.
The following should print a banana and a rocket (here you can see the result with urxvt on the left and xfce-terminal on the right; the top left config file is a bit outdate in the sense that recently the font name changed.)
echo -e "\U1f34c\U1f680"
Suggestions on where to move it?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Enrico1989 wrote:I've reported the thread as you suggested.
The following should print a banana and a rocket (here you can see the result with urxvt on the left and xfce-terminal on the right; the top left config file is a bit outdate in the sense that recently the font name changed.)
echo -e "\U1f34c\U1f680"
Suggestions on where to move it?
Applications & Desktop Environments?
Offline
urxvt -fn 'xft:DejaVuSansM Nerd Font Mono:size=12,xft:Noto Color Emoji:size=9'
If I execute
echo -e "<\U1f34c\U1f680>"
into the terminal launched like that, I get
< >
(I guess the 4 spaces are what the two emojis would occupy) and in the terminal where I launched it from, I get
urxvt: unable to calculate font width for 'Noto Color Emoji-9:slant=0:weight=100:minspace=True', using max_advance_width.
Offline
From what I understand, urxvt calls the xft library to display text, so when xft is updated, urxvt gains the new ability without needing any modification.
I still haven't got why this seems to be not the case.
Offline