ErnWong / dotfiles-old-divnix

Ironically, not many files here are actually dotfiles. Bootstrapped from https://github.com/divnix/devos
MIT License
0 stars 0 forks source link

extraterm looks blurry #29

Open ErnWong opened 2 years ago

ErnWong commented 2 years ago

It appears that the underlying canvas is not rendering its image faithfully. Here is a screen capture:

image

Here is the underlying canvas data (generated by Menu > Developer Tools > right clicking the canvas element > Store as global variable > call toDataURL() on that variable)

image

ErnWong commented 2 years ago

Computed layout does not faithfully respect the CSS sizes.

image

ErnWong commented 2 years ago

Reproduced only on my nixos environment. Does not happen on windows:

image

ErnWong commented 2 years ago

The pixel ratio in linux seems off:

image

In comparison, windows:

image

ErnWong commented 2 years ago

Similarly screen.scaleFactor is 1.0009866952896118

ErnWong commented 2 years ago

Manually setting image-rendering: pixelated; on the root html element fixes it for me as a workaround to disable interpolation when scaling, but doesn't fix the weird scaleFactor value behind the scenes.

ErnWong commented 2 years ago

Easiest way to apply this fix may be to create a new theme