xtermjs/xterm.js
[WebGL and Canvas Rendering] Font does not scale correctly with DPR higher than 1
開放
#4,728 建立於 2023年8月25日
area/addon/webglarea/mobilehelp wantedtype/bug
倉庫指標
- 星標
- (16,196 顆星)
- PR 合併指標
- (平均合併 2天 10小時) (30 天內合併 16 個 PR)
描述
When using WebGL or Canvas addons and displaying on a device with a DPR higher than 1 the text inside the container becomes larger than it should be.
DPR 4
DPR 1
When using WebGL I also get this error in Firefox when I set the DPR higher than 1.
WebGL warning: drawElementsInstanced: Drawing to a destination rect smaller than the viewport rect. (This warning will only be given once)
Details
- Firefox and Brave Desktop with Responsive Design Mode enabled both exhibit this
- OS version: Fedora 38
- xterm.js version: 5.2.1
- Canvas addon version: 0.4.0
- WebGL addon version: 0.15.0
- I'm using VueJS 3 to build my SPA
Steps to reproduce
- Create a site that uses xtermjs with either canvas or webgl
- Test the site with Responsive Design Mode