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

bold font not successfully recognized by system (vscode) #187

Open
torma616 opened this issue Aug 5, 2024 · 0 comments
Open

bold font not successfully recognized by system (vscode) #187

torma616 opened this issue Aug 5, 2024 · 0 comments

Comments

@torma616
Copy link

torma616 commented Aug 5, 2024

Hi there,

I used this tool to ligaturize Operator Mono SSm. It spit out a bunch of .otf files that were installed and validated without issues.

In VSCode, I have no issue setting the overall font-family to "Operator Mono SSm Lig" or "Operator Mono SSm Lig Book" or "Operator Mono SSm Lig Bold." Changing the document-wide text works as expected. However, in my token color customizations, only "italic" and "bold italic" are working with this font.
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"comment", // all comment types
"storage", // static, extends, async, private, public, implements, constructor, const, let, var, enum, class, function, interface
// no explicit scopes for constructor, const, let, var also no explicit scope for function without the arrow
// therefore we enable all storage and explictly exclude the arrow in another scope
"constant.language", // true, false, null
"keyword.control", // import, from, export, default, return, if, for, break, continue, try, catch, finally, throw, default, yield, await
"keyword.operator.expression", // in, void, delete, instanceof
"keyword.other", // debugger
"keyword.operator.new", // new
"variable.language", // super, this, arguments
"entity.other.attribute-name", // attributes in html, jsx, etc.
"entity.name.type.class", //class names
],
"settings": {
"fontStyle": "italic"
}
},
{
"scope": [
"entity.name.function", // function names
],
"settings": {
"fontStyle": "bold"
}
},
{
"scope": [
"storage.type.function.arrow"
],
"settings": {
"fontStyle": ""
}
}
]
}

It does seem to work with either "italic" or "bold italic" but it doesn't work with "bold" alone. This is almost definitely an issue with the font itself, as changing my overall font-family makes these textMate rules be followed as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant