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

Chinese rendering is too slow #116

Closed
Qutue opened this issue Aug 25, 2022 · 3 comments · Fixed by #130
Closed

Chinese rendering is too slow #116

Qutue opened this issue Aug 25, 2022 · 3 comments · Fixed by #130

Comments

@Qutue
Copy link

Qutue commented Aug 25, 2022

I use Source Han Sans CN and OPPO Sans fonts.
Renders very slowly than with non-CJK fonts

@l4l
Copy link
Owner

l4l commented Aug 26, 2022

I'll take a look soon but it probably a backend-related issue so I'm fairly limited in actions.

Is it reproduces without CJK characters entries? (you may temporarily add them to $HOME/.config/yofi/blacklist).

In the meantime you may try to use the other backend (fontkit is non-default).

@Qutue
Copy link
Author

Qutue commented Aug 26, 2022

Is it reproduces without CJK characters entries? (you may temporarily add them to $HOME/.config/yofi/blacklist).

Yes. I change /etc/locale.gen, comment out zh_CN.UTF-8, only keep en_US.UTF-8,
then run locale-gen and reboot system. All entries do not have CJK characters. Still slower than non-CJK fonts.
I also found that using fonts containing CJK characters slows down the response of all operations, such as typing search and using the direction keys to switch entries

@l4l
Copy link
Owner

l4l commented Aug 26, 2022

Yes. I change /etc/locale.gen, comment out zh_CN.UTF-8, only keep en_US.UTF-8,
then run locale-gen and reboot system

Locale shall not affect anything afaik fontdue (the default font rendering backend) doesn't honor most glibc-related stuff including locales.

I also found that using fonts containing CJK characters slows down the response of all operations, such as typing search and using the direction keys to switch entries

That is somewhat expected (except the "slow" part), rendering is performed for each action that's the reason.

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

Successfully merging a pull request may close this issue.

2 participants