Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sublime中[TODO)渲染失败 #23

Closed
Howardzhangdqs opened this issue Aug 25, 2022 · 5 comments
Closed

Sublime中[TODO)渲染失败 #23

Howardzhangdqs opened this issue Aug 25, 2022 · 5 comments
Labels
no wrong with font There is no wrong in font file

Comments

@Howardzhangdqs
Copy link

Howardzhangdqs commented Aug 25, 2022

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

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

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

@subframe7536
Copy link
Owner

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

"font_options": [
    "calt"
],

@subframe7536 subframe7536 added the need more info Further information is requested label Aug 26, 2022
@Howardzhangdqs
Copy link
Author

Howardzhangdqs commented Aug 30, 2022

其他类似的连字都显示正常,唯独我最想用的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)

@subframe7536
Copy link
Owner

subframe7536 commented Aug 30, 2022

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

@subframe7536 subframe7536 added no wrong with font There is no wrong in font file and removed need more info Further information is requested labels Aug 30, 2022
@brucmao
Copy link

brucmao commented Aug 30, 2022

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

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

@subframe7536
Copy link
Owner

subframe7536 commented Aug 31, 2022

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

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no wrong with font There is no wrong in font file
Projects
None yet
Development

No branches or pull requests

3 participants