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

[BUG] visual font glitch with japanese characters #2050

Open
2 tasks done
piko-piko opened this issue Nov 19, 2024 · 5 comments
Open
2 tasks done

[BUG] visual font glitch with japanese characters #2050

piko-piko opened this issue Nov 19, 2024 · 5 comments
Labels

Comments

@piko-piko
Copy link

Rofi version (rofi -v)

Version: 1.7.5-253-gc38dc9a1

Configuration

https://gist.github.com/piko-piko/ab236eeedcc744e5a2ecc75c573df822

Theme

https://gist.github.com/piko-piko/769c4302b488fcdde926384d00193be3

Timing report

No response

Launch command

echo -e '00:04:11 ヒトヒラのハナビラ Hitohira no Hanabira ステレオポニー\n00:08:23 ツキアカリのミチシルベ Tsukiakari no Michishirube ステレオポニー\n00:12:26 泪のムコウ Namida no Mukou ステレオポニー\n00:15:57 はんぶんこ Hanbunko ステレオポニー\n00:19:54 C7 GO!GO!7188\n00:24:05 浮舟 Ukifune GO!GO!7188\n00:28:17 群青日和 Gunjo Biyori 東京事変\n00:31:50 LOVE SURVIVE SCANDAL\n00:35:32 瞬間センチメンタル Shunkan Sentimental SCANDAL\n00:39:11 DOLL SCANDAL\n00:42:34 会わないつもりの、元気で ね Awanaitsumori no, Genki de ne SCANDAL\n00:47:42 壱雫空 Hitoshizuku MyGO!!!!!\n00:50:57 雑踏、僕らの街 Zatto, Bokura no Machi トゲナシトゲアリ\n00:55:40 儚くも永久のカナシ Hakanaku mo Towa no Kanashi UVERworld\n00:59:56 クオリア Qualia UVERworld\n01:04:38 ソラニン Solanin ASIAN KUNG-FU GENERATION\n01:09:07 君の街まで Kimi no Machi Made ASIAN KUNG-FU GENERATION\n01:12:41 リライト Rewrite ASIAN KUNG-FU GENERATION\n01:16:27 ジターバグ Jitterbug ELLEGARDEN\n01:19:46 スターフィッシュ Starfish ELLEGARDEN\n01:23:25 Missing ELLEGARDEN\n01:26:42 Funny Bunny ELLEGARDEN\n01:29:59 風の日 Windy Day ELLEGARDEN\n01:34:07 トレモロ Tremolo RADWIMPS\n01:37:29 星に願いを Hoshi ni Negai wo flumpool\n01:41:49 君に届け Kimi ni Todoke flumpool\n01:47:16 皆無 Kaimu ONE OK ROCK\n01:50:57 完全感覚Dreamer Kanzen Kankaku Dreamer ONE OK ROCK\n01:55:12 恋ノアイボウ心ノクピド Koi no Aibou Kokoro no Cupid ONE OK ROCK\n01:58:04 Black Market Blues 9mm Parabellum Bullet\n\n※ 内容に誤りがあった場合は返信で教 ていただけると助かります' | rofi -dmenu

Step to reproduce

  • launching the command provided

Expected behavior

echo -e '1 abc\n2 dsg\n3 sadf\n4 dsf' | rofi -dmenu
2

Actual behavior

1
It seems like the japanese character cause rofi to freak out. As far as i am aware, i am not providing any "control" characters to the input, but i provide the command so anyone can tell.

Additional information

I've checked it against the latest stable as well as the new git, as i have seen there is something being done to fix some problem with emoji display.

Using wayland display server protocol

  • No, I don't use the wayland display server protocol

I've checked if the issue exists in the latest stable release

  • Yes, I have checked the problem exists in the latest stable version
@piko-piko piko-piko added the bug label Nov 19, 2024
@DaveDavenport
Copy link
Collaborator

DaveDavenport commented Nov 19, 2024

Rofi does not do the font rendering, this is done by pango.
I am not sure what can be done about this.

It looks to me that rofipango uses another font to render when japanese characters are in the string.
This is pretty clear on my system:
rofi-2024-11-19-2223-00000

Any pango/font expert have an idea how to avoid this?

@piko-piko
Copy link
Author

Thank you for the clarification. I'll ask around unixporn discord if someone has any insight then.

@DaveDavenport
Copy link
Collaborator

If you find a solution, please report back so we can include it in the documentation.

@piko-piko
Copy link
Author

Well, not really a solution, but at least a pointer for people who encounter this, it's a 5yo pango issue : https://gitlab.gnome.org/GNOME/pango/-/issues/353

@DaveDavenport
Copy link
Collaborator

That is a shame, guess there is no clear solution.

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

No branches or pull requests

2 participants