maple-font icon indicating copy to clipboard operation
maple-font copied to clipboard

Sublime中[TODO)渲染失败

Open Howardzhangdqs opened this issue 1 year ago • 1 comments

sublime text中[TODO)渲染失败 操作系统:windows11 sublime text Build4216,已购买许可证并注册 image setting中的配置:

{
    "font_face": "Maple Mono SC NF",
}

其他地方如系统自带记事本渲染都正常

Howardzhangdqs avatar Aug 25 '22 04:08 Howardzhangdqs

连字有开启吗?我这个是calt

"font_options": [
    "calt"
],

subframe7536 avatar Aug 25 '22 09:08 subframe7536

其他类似的连字都显示正常,唯独我最想用的todo没有:cry: image 具体设置(我去开了您说的calt,但好像并不是sublime的配置项):

{
	"font_face": "Maple Mono SC NF",
	"font_options": ["directwrite", "calt"],
	"word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?",
}

font_options属性里好像有一个叫no_calt的,官方的解释:

"no_calt": Disables contextual alternatives (OpenType calt feature)

Howardzhangdqs avatar Aug 30 '22 05:08 Howardzhangdqs

https://www.sublimetext.com/docs/ligatures.html 看起来是应该是sublime的问题,目前不支持包含字母的连字

subframe7536 avatar Aug 30 '22 06:08 subframe7536

这个[TODO) 在python(pycharm)中无法注释使用把,前面加#[TODO) 渲染失败,java中 //[TODO) 倒是显示正常

看来只能使用多行注释 '''[TODO)''' 这样倒是可以

brucmao avatar Aug 30 '22 16:08 brucmao

这个[TODO) 在python(pycharm)中无法注释使用把,前面加#[TODO) 渲染失败,java中 //[TODO) 倒是显示正常

看来只能使用多行注释 '''[TODO)''' 这样倒是可以

这个问题确实存在,因为注释里的todo作为关键字高亮了,可能和[分离了,导致无法匹配[TODO) 我已增加了几个feature #31 #32 #33

subframe7536 avatar Aug 31 '22 00:08 subframe7536