Xterm.js: Font Problem

Created on 26 Jun 2018  路  4Comments  路  Source: xtermjs/xterm.js

Hi,
xterm

This is how xterm is displayed with defaults.
I tried to change font-family & line height.
What is the problem?
I am using your startup example.

Details

  • Browser and browser version: Chrome 67
  • OS version: Ubuntu 18.04
  • xterm.js version: 3.4.1

Steps to reproduce



    1. 2.
duplicate

Most helpful comment

I added this to the constructor, which fixes the issue for me on Ubuntu 18.04 and Chrome 67:

const xterm = new Terminal({ 
    fontSize: 14,
    fontFamily: 'Ubuntu Mono, courier-new, courier, monospace'
});

All 4 comments

Hello, your issue looks like related to #1170

Had the same issue on debian buster/sid / Firefox ESR 52.8.1 (64-bit), fixed it by changing the font family to Courier New

const xterm = new Terminal({ fontFamily: 'Courier New' });

Hi,
I added fontFamily:'Courier New' option to constructor.
But nothing changed.

I added this to the constructor, which fixes the issue for me on Ubuntu 18.04 and Chrome 67:

const xterm = new Terminal({ 
    fontSize: 14,
    fontFamily: 'Ubuntu Mono, courier-new, courier, monospace'
});

Thank you @jan0e .
This solved my problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tandatle picture tandatle  路  3Comments

LB-J picture LB-J  路  3Comments

albinekb picture albinekb  路  4Comments

jestapinski picture jestapinski  路  3Comments

goxr3plus picture goxr3plus  路  3Comments