xtermjs/xterm.js

Text is abnormally thin when setting allowTransparency=true with webgl renderer (even when color is opaque)

Open

#4,212 建立於 2022年10月18日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)TypeScript (1,574 fork)batch import
area/addon/webglhelp wantedtype/bug

倉庫指標

Star
 (16,196 star)
PR 合併指標
 (平均合併 4天 3小時) (30 天內合併 81 個 PR)

描述

Text rendering is abnormally thin when allowTransparency=true with the webgl renderer even when the background color is completely opaque.

allowTransparency=false: disallow_transparency

allowTransparency=true: allow_transparency

I think this is also mentioned in this comment in another bug.

Details

  • Browser and browser version: Chrome 106.0.5249.119
  • OS version: Linux (Debian)
  • xterm.js version: ToT @ 376f0d99721b6ec056b15551f46237b80e24b55b

Steps to reproduce

  1. Run the demo page
  2. Set theme to light and font family to "Noto Sans Mono"
  3. Execute echo -e '\033[33mhello world\033[m'
  4. Observe that the rendering is OK
  5. Check the "allowTransparency" toggle
  6. Reload the webgl addon because the rendering is messed up: Uncheck and then check the webgl checkbox under "Addon". (I believe reloading the addon is NOT what is causing problem here)
  7. Observe that the "hello world" text is abnormally thin

Note that the light theme have a completely opaque background, so the rendering theoretically should just be the same.

貢獻者指南