add_regions ignores font_style for scope
Description of the bug
I'm using version 4192. I made a plugin to highlight TODOs and other special keywords in comments (I know several plugins exist for similar functionality, but wanted to make my own). The keyword scopes should be styled bold by my colorscheme, but do not render as bold. view.style_for_scope shows that the scopes are styled as bold.
Plugin file: TODO.py
Relevant parts of colorscheme:
{
/* snip */
"rules": [
/* snip */
{
"name": "Comment",
"scope": "comment",
"foreground": "color(var(green))",
"font_style": "bold",
},
/* snip */
{
"name": "TODO", "scope": "comment.todo",
"background": "var(lyellow)", "font_style": "bold", "foreground": "var(black)",
},
{
"name": "NOTE", "scope": "comment.note",
"background": "var(lblue)", "font_style": "bold", "foreground": "var(black)",
},
{
"name": "WARN", "scope": "comment.warn",
"background": "var(lred)", "font_style": "bold", "foreground": "var(black)",
},
]
}
Steps to reproduce
- Install TODO.py plugin (attached)
- Style relevant scopes as bold
- Text does not render as bold
- Open Console and looking at messages shows scope should be bold.
Expected behavior
Expected highlighted text to be rendered bold.
Actual behavior
Text is rendered at standard font weight.
Sublime Text build number
4192
Operating system & version
NixOS 25.05 (warbler)
(Linux) Desktop environment and/or window manager
Gnome 48.2 (wayland)
Additional information
No response
OpenGL context information
Is bold/italic rendering probably disabled via "font_options" setting?
Is bold/italic rendering probably disabled via
"font_options"setting?
I don't think so. You can see in the screenshot other text rendering bold (other comments, keywords)