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

nerdfont support? #681

Open
xronin01 opened this issue Nov 18, 2024 · 20 comments
Open

nerdfont support? #681

xronin01 opened this issue Nov 18, 2024 · 20 comments

Comments

@xronin01
Copy link

Screenshot_20241118-131108_Termux

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Nov 18, 2024

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

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Nov 18, 2024

What vtm release? (vtm -v)

@xronin01
Copy link
Author

v0.9.99.35

@xronin01
Copy link
Author

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

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Nov 18, 2024

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

@xronin01
Copy link
Author

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

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Nov 18, 2024

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
Copy link
Author

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

@xronin01
Copy link
Author

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

@xronin01
Copy link
Author

2024-11-18_16-18-27.mp4

Alacritty on TermuxX11

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Nov 18, 2024

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

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Nov 18, 2024

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

  • My locale:
    sdn@meg:~$ locale
    LANG=C.UTF-8
    LANGUAGE=
    LC_CTYPE="C.UTF-8"
    LC_NUMERIC="C.UTF-8"
    LC_TIME="C.UTF-8"
    LC_COLLATE="C.UTF-8"
    LC_MONETARY="C.UTF-8"
    LC_MESSAGES="C.UTF-8"
    LC_PAPER="C.UTF-8"
    LC_NAME="C.UTF-8"
    LC_ADDRESS="C.UTF-8"
    LC_TELEPHONE="C.UTF-8"
    LC_MEASUREMENT="C.UTF-8"
    LC_IDENTIFICATION="C.UTF-8"
    LC_ALL=
    sdn@meg:~$ 

@xronin01
Copy link
Author

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Nov 18, 2024

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

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Nov 18, 2024

Could you try to run the following:

LANG=en_US.UTF-8 vtm

and

printf "😉"

@xronin01
Copy link
Author

doesn't work

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Nov 18, 2024

Could you just printf emoji in your shell?

printf "😉"

This is to make sure utf-8 works.

@xronin01
Copy link
Author

Screenshot_20241118-200748_Termux

@xronin01
Copy link
Author

Screenshot_20241118-200803_Termux

@o-sdn-o
Copy link
Collaborator

o-sdn-o commented Nov 18, 2024

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

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

No branches or pull requests

2 participants