xtermjs/xterm.js

Support 'px' format in lineHeight option

開放

#2,612 建立於 2019年12月6日

 (5 則留言) (1 個反應) (1 位負責人)TypeScript (1,574 個分叉)batch import
good first issuehelp wantedtype/enhancement

倉庫指標

星標
 (16,196 顆星)
PR 合併指標
 (平均合併 2天 10小時) (30 天內合併 16 個 PR)

描述

Now the LineHeight can only be propagated to the number type like 1.2.

There is a very uncomfortable scenario:

I chose to use DOM to render,Then the contents of the subdiv of xterm-rows, as shown below, are determined based on the configuration items, such as 1.2, and the calculated value is 21px:

image

I want to set LineHeight to 23px, then I need to set LineHeight to 1.3, but I don't know how to turn 23 to 1.3

貢獻者指南