-
-
Notifications
You must be signed in to change notification settings - Fork 799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
emojis crash st
(simple terminal)
#119
Comments
ttf-symbola and ttf-emojione are already installed by the LARBS script by default since 8f21ec5 (December 16, 2018). noto-fonts is also installed as it is pulled as the first valid font dependency. Since as you say you couldn't install symbola via an AUR helper, this is likely a problem on your end involving your keyrings, permissions or something in your Arch install process. I've just now rebuilt all these packages via the AUR and they work fine. |
Great! Yeah, it was probably me, although I just followed your installation videos. Anyways, glad it's fine, have a nice day Luke:) |
Welp - Is there are way to cleanly set up fonts & emojis just like you have in your videos, @LukeSmithxyz?Okay, shoes. I'm kinda lost with emojis rn. If I have I've installed arch based on your videos and then used larbs on a clean install to configure everything about a few weeks ago. I've also tried
And failed at https://github.com/googlei18n/noto-emoji/ (the building process doesn't seem to work for me) (but these emojis look great and I'm pretty sure you might be using them so if you could help with the build process it'd be great) It's weird but when I copy an emoji from dmenu (using dmenuunicode) and use |
Your first problem has to do with what fontconfig is using as the
default font. I can't be sure of your settings. If you want to know what
I have on my system, if I run this:
```
pacman -Qe | grep "font\|ttf"
```
I get these installed fonts:
```
nerd-fonts-complete 2.0.0-5
noto-fonts 20190111-1
noto-fonts-cjk 20181130-2
texlive-fontsextra 2018.50019-1
ttf-emojione 4.5-1
ttf-inconsolata 1:2.0.0.1-3
ttf-junicode 1.002-1
ttf-linux-libertine 5.3.0-4
ttf-ms-fonts 2.0-10
ttf-symbola 12.00-1
```
The texlive, junicode, ms-fonts and nerd-fonts packages shouldn't really
be relevant so you can probably ignore them for your purposes.
I've found that you shouldn't use `ttf-emojione-color` as it actually
tends to default to black and white defaults. Anyway, if you want to
avoid changing fontconfig settings manually, you may want to mimic the
packages I have installed.
Well as for the second question, terminal applications will be using
your monospace black and white font. Everything is working as intended.
They're the same characters. Did you want colorful emojis in the
terminal? If that can be done I've never done it myself.
…On 19/03/25 02:38, Kipras Melnikovas wrote:
### Welp - Is there are way to cleanly set up fonts & emojis just like you have in your videos, @LukeSmithxyz?
---
Okay, shoes. I'm kinda lost with emojis rn. If I have `ttf-symbola` installed, they are available, but they are only black and white. If I uninstall `ttf-symbola`, some become colorful, and some become unavailable (both scenarios are bad).
I've installed arch based on your videos and then used larbs on a clean install to configure everything about a few weeks ago.
I've also tried
* https://github.com/googlei18n/noto-emoji/
* https://www.archlinux.org/packages/extra/any/noto-fonts-emoji/
And failed at https://github.com/googlei18n/noto-emoji/ (the building process doesn't seem to work for me)
It's weird but when I copy an emoji from dmenu (using dmenuunicode) and use `notify-send ((some_emoji))`, the notification shows the emoji correctly just like I want, but `st`, `nvim`, chrome, vscode and other apps don't 😢
![](https://i.imgur.com/JwmYiYm.jpg)
Dmenu:
![](https://i.imgur.com/1NL9qhy.jpg)
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#119 (comment)
|
Strange, I do recall having colorful emojis in st and vim, also in vscode, but not anymore :( (I was installing some fonts like I've now installed the same packages as you just mentioned. Thank you @LukeSmithxyz. If I find a way to have colorful emojis in the terminal I'll for sure let ya know! Here's the output of my stuff just in case: pacman -Qe | grep "font\|ttf" noto-fonts-emoji 20180810-2
ttf-emojione 4.5-1
ttf-inconsolata 1:2.0.0.1-3
ttf-linux-libertine 5.3.0-4
ttf-symbola 12.00-1
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<alias>
<family>serif</family>
<prefer><family>Linux Libertine</family></prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer><family>Linux Biolinum</family></prefer>
</alias>
<alias>
<family>sans</family>
<prefer><family>Linux Biolinum</family></prefer>
</alias>
<alias>
<family>monospace</family>
<prefer><family>Inconsolata</family></prefer>
</alias>
</fontconfig> |
UpdateTL;DR:I symlinked Wondering if there's a way to
So I just came across this issue kovidgoyal/kitty#73 (specifically kovidgoyal/kitty#73 (comment) and kovidgoyal/kitty#73 (comment))
He's been asked how to enable support for emojis for the kitty terminal using ttf-emojione. He says to install the package AND to create a symlink for (the command is Also, the same is suggested inside the After this command I once again have colorful emojis in vscode!! But, I should mention that now I don't have half of the emojis available, Although I CAN copy from dmenu and later paste into, say, chrome or firefox or vscode, it's still bad (st breaking is the worst part) I'm still trying to mess around with the fonts I have to potentially have colorful support in the I tried out the Also, And Things I also tried that did NOT help: |
Having a very similar problem. Did you figure out a solution meanwhile? |
Hey @pat-s - I couldn't manage to get back even uncolored support for my st terminal and realised that probably some configuration files or fonts interfered. It was annoying because I couldn't even use vim properly - emojis made st crash, taking down vim togerher:s I recently re-installed arch and now emojis work as expected -- although, sadly, they're only black & white.. I'd love a colorful solution, especially for the terminal, but I haven't figured it out yet. Best of luck trying & if you make it -- please share!:) |
I am having exactly the same problem regarding crashes. This also relates to I have an idea what might be the reason but need to track it down further. Will let you know. |
So the error looks like this: X Error of failed request: BadLength (poly request too large or internal Xlib length error)
Major opcode of failed request: 139 (RENDER)
Minor opcode of failed request: 20 (RenderAddGlyphs)
Serial number of failed request: 1442
Current serial number in output stream: 1454 Some interesting resources from the st mailing list: https://lists.suckless.org/dev/1709/32318.html The whole archive can be found here: https://lists.suckless.org/dev/thread.html TL;DR: Looks like it is not uncommon that I couldn't reproduce the error on a Antergos Live system. Currently I am on ArchLabs. It could be that even some distro specific packages are causing the error. I do not really want to re-install my whole system just because of that. But maybe I have to. Not sure yet.. |
SummaryI did a new installation. But this was not the problem/solution. The problem is sitting somewhere in Ofc now that my setup is gone I cannot replicate it anymore - However, I still have a second machine with the same "old" setup now that I could debug step by step (by this I mean removing the config files sequentially and checking after each). At least I have a full LARBS setup now 👍 |
I also re-installed machine2. While this worked in the beginning, I am facing the same problem again now. Machine1 is still fine. I really have no clue... |
I am able to reproduce it now. Once I set an emoji font as fallback to have colored emojis in some apps, See here how I do it. Now I need to figure out how to exclude |
Woah, that's a lot you've done - proud of your effort! I just tried out your article you just linked, and I get the same results - emojis in chrome, vscode & similar apps are colorful now, but Hoping you'll find a way out for us:D - best of luck once again @pat-s! |
Edit - just using this config as The command is sudo curl -o /etc/fonts/local.conf https://pastebin.com/raw/atfUQQ2j |
Got it. If you remove the following block <match target="pattern">
<test name="family"><string>monospace</string></test>
<edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
</match> from the file linked in my previous post, <!-- Block Symbola from the list of fallback fonts. -->
<selectfont>
<rejectfont>
<pattern>
<patelt name="family">
<string>Symbola</string>
</patelt>
</pattern>
</rejectfont>
</selectfont> So when There are some other related issues to colored emojis and crashes: LukeSmithxyz/st#58 And more on the |
Hey, that's interesting. I tried removing the code block and also tried to comment out the |
ttf-symbola
by defaultst
(simple terminal)
Mine was crashing with same errors due to zsh tmux plugin. You might want to check there too! |
Edit:
Previously I thought that the
ttf-symbola
font was missing from larbs & that installing it would fix thest
crashes when encountering emojis.It turned out to not be the case, and we're now trying to find a fix / work-around to avoid
st
from crashing while having colorful emojis in other programs.Feedback & further testing / investigations are very welcome.
Hello,
TL;DR:
I'd like to suggest adding
ttf-symbola
s installation to larbs by default.I've had numerous issues with some emojis not being showable (such as st crashing when a file is opened that contains certain emojis) and just recently found this issue LukeSmithxyz/voidrice#232 from voidrice - which actually finally fixed it for me.
The steps I took were:
Install
ttf-symbola
from AUR @ https://aur.archlinux.org/packages/ttf-symbola/(for me it failed when using yay or git, instead I used wget (or just regular download),
then cd /path/to/downloaded/ttf-symbola, tar -xvf ttf-symbola, cd ttf-symbola, makepkg -si, sudo pacman -U generated-package-name)
I suggest this so that other people don't get confused:)
Note - there might be more things that are necessary to completely fix the emoji support such as other fonts (ttf-emojione-color; noto-fonts etc) - they'd probably be useful too!
The text was updated successfully, but these errors were encountered: