vercel / hyper

A terminal built on web technologies
https://hyper.is
MIT License
43.26k stars 3.52k forks source link

Blurry font rendering across middle of screen when maximised #3955

Open xandora opened 4 years ago

xandora commented 4 years ago

Issue

There is an obvious blurriness to text across the middle third of the screen when Hyper is running maximised. This does not occur when the app window has been resized to less than maximised, or when the app is running in fullscreen mode (F11).

Resized: Screenshot from 2019-11-07 14-16-00 Maximised: Screenshot from 2019-11-07 14-16-06 Fullscreen: Screenshot from 2019-11-07 14-16-09

xandora commented 4 years ago

This also seems to happen at certain vertical resolution ranges:

I think these are probably related to the breakpoints for number of visible lines, as it only changes from blurry to sharp after an additional line is snapped in.

yohan-choi-dev commented 4 years ago

Oh if you don't mind, I will investigate this issue!

AnatoleLucet commented 3 years ago

Looks like subpixel rendering to me. One dirty way to fix it is to remove the fixed height on the canvas:

css: `
  .xterm canvas {
    height: auto !important;
  }
`,
linaori commented 3 years ago

Just encountered this issue in a maximized state but only appeared on 1 tab. Applying the above CSS "fixed" it.