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

Plugin apparently ignores font setting #9

Open
halian opened this issue Nov 30, 2024 · 9 comments
Open

Plugin apparently ignores font setting #9

halian opened this issue Nov 30, 2024 · 9 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed investigation needed Investigation is needed for finding root cause

Comments

@halian
Copy link

halian commented Nov 30, 2024

When using Decky Terminal on my ROG Ally, it ignores any font name I give it, instead presenting the terminal in a poorly-kerned proportional font (see attached screenshot). I've no idea if this is proper setting ignorance or inability to see installed fonts, nor how to fix either case.

20241129234837_1

@Alex4386 Alex4386 self-assigned this Dec 2, 2024
@Alex4386
Copy link
Owner

Alex4386 commented Dec 2, 2024

It seems it is falling back to default sans-serif or system font.
Since this plugin utilizes xtermjs to render the terminal itself, so thus using CSS, The font name you need to specify in the console should be "what" the font actually claims to be (i.e. IBM Plex Sans Mono -> IBMPlexSansMono)

By default the fonts should be installed in ~/.local/share/fonts, Please open your font with some sort of font viewer and get the name for this.

Can you tell me which font are you trying to use? That will be helpful for fixing this issue if this is a bug.

@halian
Copy link
Author

halian commented Dec 6, 2024

All of the fonts on this machine are in /usr/share/fonts. I've been trying Hack and Fantasque Sans Mono.

@Alex4386
Copy link
Owner

Alex4386 commented Dec 6, 2024

All of the fonts on this machine are in /usr/share/fonts. I've been trying Hack and Fantasque Sans Mono.

@halian If possible, Could you show me the config? I really need some context here to keep going

@halian
Copy link
Author

halian commented Dec 9, 2024

@Alex4386 Unfortunately, I don't know where the config file is stored, and for reasons beyond the scope of this issue am unable to take screenshots on my Ally in Gaming Mode (under CachyOS Handheld Edition), so the best I can do is pointing my camera at the screen. ._.

image

None of the following font names have worked:

Hack
"Hack"
'Hack'
FantasqueSansM Nerd Font
"FantasqueSansM Nerd Font"
'FantasqueSansM Nerd Font'

@Alex4386
Copy link
Owner

Alex4386 commented Dec 9, 2024

@Alex4386 Unfortunately, I don't know where the config file is stored, and for reasons beyond the scope of this issue am unable to take screenshots on my Ally in Gaming Mode (under CachyOS Handheld Edition), so the best I can do is pointing my camera at the screen. ._.

image

None of the following font names have worked:

Hack
"Hack"
'Hack'
FantasqueSansM Nerd Font
"FantasqueSansM Nerd Font"
'FantasqueSansM Nerd Font'

Yes! This is exactly what I was requesting for Thanks!

The Nerd Font usually uses different name for their display name than actual font name for referenced from Web Browser (i.e. CEF of Deck UI), I'd give it a look when I'm avail.
I'm pretty sure this is the case since I am using IBMBlexMono Nerd Font by myself

@halian
Copy link
Author

halian commented Dec 12, 2024

For reasons beyond the scope of this issue, I had to reïnstall Linux on my ROG Ally; I went with Bazzite this time, and the issue is not present there.

image

@Alex4386
Copy link
Owner

Hmm, weird. Maybe the cachyOS utilize some sort of sandboxing scheme on Steam binary?

@Alex4386
Copy link
Owner

Alex4386 commented Dec 26, 2024

@halian

For reasons beyond the scope of this issue, I had to reïnstall Linux on my ROG Ally; I went with Bazzite this time, and the issue is not present there.

[image truncated]

Just to make sure, How did you install steam? Was it via flatpak? (It is very weird of CEF being unable to discover the system fonts though)
I will try to reproduce via installing cachyOS on a VM. So, more info about the issue would help.

@halian
Copy link
Author

halian commented Dec 26, 2024

It comes preïnstalled, and Steam's Gaming Mode is the default environment (with the traditional desktop accessible through a system menu); CachyOS Handheld Edition and Bazzite are SteamOS-like distros pointed at handheld gaming PCs that ship with Winblows.

@Alex4386 Alex4386 added help wanted Extra attention is needed investigation needed Investigation is needed for finding root cause bug Something isn't working labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed investigation needed Investigation is needed for finding root cause
Projects
None yet
Development

No branches or pull requests

2 participants