Skip to content
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

error when run cat ~/.config/emoji #125

Closed
smikeblog opened this issue Sep 10, 2019 · 6 comments
Closed

error when run cat ~/.config/emoji #125

smikeblog opened this issue Sep 10, 2019 · 6 comments

Comments

@smikeblog
Copy link

Hi, Luke!
There is smth wrong in st
the error when I run st from default terminal - gnome-terminal on Manjaro
give
~ ❯❯❯ st
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: 4315
Current serial number in output stream: 4467

The emoji is your emoji file
On tilix or gnome-terminal there is no error and terminal doesn'n crash.

@Tulkdan
Copy link

Tulkdan commented Sep 11, 2019

I was able to fix it downloading the font Symbola that have a lot of representations for emojis

@smikeblog
Copy link
Author

Thanks!
I installed symbola font but unfortunately that doesn't solve the problem. cat command crashed the terminal.

@mamg22
Copy link

mamg22 commented Sep 17, 2019

This error seems to be from Xft (the font drawing library) and not from st, as noted in st's FAQ, there it suggests to either not use color emoji fonts, disable its usage in the fontconfig configuration or use the ugly workaround (which I use and can say it works perfectly), by adding it in one of the font loading functions in x.c, but it makes emoji colorless or render as a square.

For those who want to use the ugly workaround, The code suggested in the FAQ requires that there is a FcPattern called fcpattern, and there's only one function that has that: xmakeglyphfontspecs, so I added it after FcPatternAddBool(fcpattern, FC_SCALABLE, 1); a little before line 1400, if someone thinks there's a better place to put it, tell me

@kevteg
Copy link

kevteg commented Sep 20, 2019

Using symbola (st -f "ttf-symbola") worked for me too!

@LukeSmithxyz
Copy link
Owner

@madobet
Copy link

madobet commented Nov 20, 2019

This error seems to be from Xft (the font drawing library) and not from st, as noted in st's FAQ, there it suggests to either not use color emoji fonts, disable its usage in the fontconfig configuration or use the ugly workaround (which I use and can say it works perfectly), by adding it in one of the font loading functions in x.c, but it makes emoji colorless or render as a square.

For those who want to use the ugly workaround, The code suggested in the FAQ requires that there is a FcPattern called fcpattern, and there's only one function that has that: xmakeglyphfontspecs, so I added it after FcPatternAddBool(fcpattern, FC_SCALABLE, 1); a little before line 1400, if someone thinks there's a better place to put it, tell me

There is only one function call: FcPatternAddBool(fcpattern, FC_SCALABLE, 1); in x.c, so I changed it to FcPatternAddBool(fcpattern, FC_SCALABLE, FcFalse);. compiled st again, it works but emoji will disappear?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants