ubergeek42 / weechat-android

Simple Weechat-Relay Android Client
522 stars 103 forks source link

Nicks with wide characters are not rendered with correct tabulation #522

Open bqv opened 3 years ago

bqv commented 3 years ago

Hello.

Using weechat for a niche circumstance (xmpp, http://github.com/bqv/weechat-xmpp by me).

I see a user with hanzi characters in their name, looks like it breaks your expectations and therefore rendering. Any chance of a fix?

20210708_181749272_7506

Thanks

oakkitten commented 3 years ago

this is an issue that might be a bit hard to fix. currently the whole line is printed in one stroke; we'd need to draw the prefix separately to address this. this might require a bit of change. another problem is, the nickname might not fit the allotted space and some logic will be required to cut it up. fixing this would allow using proportional fonts with the text alignment as in the screenshot, which would be quite nice