-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
feature request: configure OpenType font features #10435
Comments
This is a blocking feature for making use of a font I purchased for programming. I don't think we should need extensions to use OpenType standards compliant font configuration. If we can already do this and I'm just confused could someone help? "[markdown]":{ see |
What work needs to be done to support this? As far as I can tell people have done this via extensions through the custom css extension.
|
this commit is probably pretty close to the work that needs to be done |
It might also involve something like this. |
I think we should be able to use these with our themes. Some people like cursive parts. |
Thanks, @voronoipotato ! One can add following to .monaco-editor {
font-feature-settings: "ss02" !important;
} More about CSS for OpenType features: https://helpx.adobe.com/fonts/using/open-type-syntax.html |
@Njke hmmm that would only work if I wanted this stylistic set for all languages, however I only want ss02 on Markdown. |
Sorry, but how do I get to
|
Right-click -> "show package contents" Carry on! |
(It seems worth noting that diving into the app Package Contents CSS is pretty hacky ... this would be much nicer and less fragile if made into an actual setting). I like the initial proposal a lot – this would be great to basically follow the CSS syntax for OpenType features. https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/OpenType_fonts_guide |
With fonts like “Fira Code V2”, where several glyph alternatives can be enabled with font-feature-settings attributes, this is a super useful feature to have! In addition to that, newer macOS versions (e.g. Catalina) will make it much harder to make changes under /Applications folders, so poking around under the app directory is going to be too cumbersome for most people. |
Implemented via ab0eb6d (#82153) and it already shipped in Insiders. e.g.
or
|
From #6918: Please support configuration of font features, and possibly also support "user friendly" alternate configuration via font variants.
Font features allow the user to control the use of alternate glyphs and ligatures. For example:
Issue #6918 demonstrates that fonts may include useful nonstandard feature tags, so it is important that the user is not restricted to just the "font variant" options.
Example:
The text was updated successfully, but these errors were encountered: