directvt / vtm

Text-based desktop environment
MIT License
1.63k stars 43 forks source link

nerdfont support? #681

Open xronin01 opened 1 day ago

xronin01 commented 1 day ago

Screenshot_20241118-131108_Termux

o-sdn-o commented 1 day ago

Could you please add more details. OS, TUI or GUI mode or how to reproduce, what font are you using?

o-sdn-o commented 1 day ago

What vtm release? (vtm -v)

xronin01 commented 1 day ago

v0.9.99.35

xronin01 commented 1 day ago

I'm running on termux in TUI mode vtm -r term

o-sdn-o commented 1 day ago

To fix this, I need to somehow reproduce this behavior.

xronin01 commented 1 day ago

https://f-droid.org/packages/com.termux/

o-sdn-o commented 1 day ago

Vtm doesn't filter characters on its side. Characters can be outside the range of the Unicode standard range, the only thing is that the running apps output the text in UTF-8.

It seems to me that Termux doesn't include nerdfonts by default (maybe it does) https://www.reddit.com/r/termux/comments/14clllg/termuxnerdinstaller_tool/. Do you have these fonts installed?

xronin01 commented 1 day ago

I have this font installed https://github.com/slavfox/Cozette

xronin01 commented 1 day ago

https://wiki.termux.com/wiki/Termux:Styling

xronin01 commented 1 day ago

https://github.com/user-attachments/assets/b54dfd15-1677-4da8-b1b2-6763a2b16db8

Alacritty on TermuxX11

o-sdn-o commented 1 day ago

It feels like something is wrong with the text encoding, with the code page.

o-sdn-o commented 1 day ago

Could it be that the code page (encoding) in your system is not UTF-8 (65001)?

xronin01 commented 1 day ago

https://github.com/termux/termux-packages/issues/546

o-sdn-o commented 1 day ago

I see. Maybe vtm is using some mode that causes such incompatibility. I will investigate it.

o-sdn-o commented 1 day ago

Could you try to run the following:

LANG=en_US.UTF-8 vtm

and

printf "😉"
xronin01 commented 1 day ago

doesn't work

o-sdn-o commented 1 day ago

Could you just printf emoji in your shell?

printf "😉"

This is to make sure utf-8 works.

xronin01 commented 1 day ago

Screenshot_20241118-200748_Termux

xronin01 commented 1 day ago

Screenshot_20241118-200803_Termux

o-sdn-o commented 1 day ago

Thanks, vtm is indeed working in the wrong mode. I'll think about what can be done about it.