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

贡献者指南