-
Notifications
You must be signed in to change notification settings - Fork 137
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
Can't set font size and family with xterm #37
Comments
hi, in 163fd05 the whole was this by intent @sorenisanerd ? how to set font-family? the release notes from 1.4 say
well this could be right (parameters are transfered to xterm), but one cannot configure these settings any more in the gotty-conf file. |
Gosh. This is embarassing. Let me ponder it for bit and I'll come up with something. |
This is how ttyd exposes xterm.js parameters: https://github.com/tsl0922/ttyd/wiki/Client-Options#advanced-usage Configuration file may be nicer, but if it is too much work at this point - open-ended command line option is a good start. P.S.: Was also using |
As a temporary workaround, I hard coded the font in the new Terminal() function: I had to leave the generic "monospace" font because of this bug: xtermjs/xterm.js#2963 (comment) The basic way to use this is to install the new font on the host. A most advanced way to use this is to create a custom index file (use the --index option), add a custom CSS file to the index file, and load the font as a web font, for instance: |
@flechaig has anyone tried this? with two separate fonts describing my xterm can one just add another |
I think it works but it may fail sometimes or be slow because the fonts must be downloaded each time you load GoTTY instead of using the local font files on the system. |
What version of GoTTY are you using (
gotty --version
)?1.4.0
What operating system and browser are you using?
Ubuntu 22.04 - Docker container
What did you do?
I tried everything to change the font sizez and family and can't get it to work.
I managed to change the "messages" font size (the message "Connection Closed"), but not the terminal font size.
What did you expect to see?
I want to be able to set the font size and family in the config file.
What did you see instead?
The font size and family cannot be modified.
The text was updated successfully, but these errors were encountered: