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

Issue: Change Font #2

Open
gitkalz opened this issue May 1, 2018 · 3 comments
Open

Issue: Change Font #2

gitkalz opened this issue May 1, 2018 · 3 comments
Assignees

Comments

@gitkalz
Copy link

gitkalz commented May 1, 2018

Hi There,

This is great.. Thanks for your effort in bringing back the simplicity of tty.js and giving it a new life..

Do you know how can I customize the font size and color on the terminal.. In tty.js era, I just used a user.css file to indicate my font and color settings, however this seem not working with xterm.js. I see that xterm.js uses xterm.css however i cannot find relevant block to apply my font settings.

You may feel free to close this issue if you see it not relevant. Thanks again for your time and Great Work!

@risacher
Copy link
Owner

risacher commented Jun 1, 2018

Yep.... It’s a legitimate issue. I prefer the old css way also. Alas, xterm.js doesnt do it that way. There are APIs in xterm.js to do this, but I should probably include an example user.js that does it. I did this for my own live instance and its tricky because it wont auto load fonts.

@risacher
Copy link
Owner

risacher commented Jun 4, 2018

I think I'll put the background color and fonts into the preferences.

In the meanwhile, the current code in github has fonts hardcoded at line 632 of static/ttyx-client.js:

https://github.com/risacher/ttyx/blob/master/static/ttyx-client.js#L632

@risacher
Copy link
Owner

risacher commented Jun 5, 2018

added fontSize and fontFamily to config.json options.

I think the colors are customizable too from that file, but poorly documented what they mean.

@risacher risacher self-assigned this Jan 24, 2019
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