yofi icon indicating copy to clipboard operation
yofi copied to clipboard

Chinese rendering is too slow

Open Qutue opened this issue 3 years ago • 3 comments

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

Qutue avatar Aug 25 '22 07:08 Qutue

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).

l4l avatar Aug 26 '22 12:08 l4l

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

Qutue avatar Aug 26 '22 13:08 Qutue

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.

l4l avatar Aug 26 '22 17:08 l4l