Support for the 'font-family' CSS attribute for each syntax highlighting selector

It would be really helpful if there was support for multiple typefaces for styling syntax highlighting. Currently, as per the docs, only the following CSS attributes are supported:

  • background-color
  • color
  • font-style
  • font-weight
  • text-decoration
  • text-shadow

Is it possible to add support for the font-family attribute?

I have ADHD and that makes reading/scanning code a bit challenging for me. Having support for multiple typefaces would make the reading/scanning part much more accessible for me.

2 Likes

@logan Sorry for tagging you. Just wondering if you got a chance to look into this?

Hello Yash,

Apologies for not replying to this originally, it slipped past me without realizing.

This isn’t currently possible, mostly because since themes can be distributed between users via the extension library and cannot guarantee that a font family is available on another Mac, but there would be possible ways we could handle this gracefully (or, alternatively, allow the end-user to customize the specific fonts used for each point a theme might want to differentiate them.)

We’ll keep this in mind as a feature request!

1 Like

Thanks for responding, Logan. I hope this feature makes it into one of the future releases. To me, it would really be the most helpful feature of all :slight_smile: