-
Notifications
You must be signed in to change notification settings - Fork 40
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
font_options: Support "slashed zero" OpenType layout feature #2302
Comments
Just want to add it would be great to see other open-type features as well, namely:
|
I really hope these brilliant suggestions are not being plainly ignored! Just because it's trivial does not mean we can pretend they don't exist. |
Is there any progress on this? I opened an issue on the JetBrains Mono repo for slashed-zero support in the typeface and it apparently already has it. I found this reference guide on enabling stylistic sets in Fira Code for usage in Sublime Text helpful, but the suggestion doesn't seem to work. I don't know much about native software development but it seems like additional ligature support is relatively minor to implement. Hopefully, Panic's Nova comes out supporting what we want. |
I thought it wasn't working either, but then realized that the stylistic sets don't work on JSON files for some reason. And I was doing all my testing right there in the Settings file. When I created a new Plain Text file it worked just fine, and seems to work on the majority of extensions that can be selected in the bottom right corner of the Sublime Text window. Hope that helps! |
Curious... Are you saying there is actually a way to do it? |
I was doing my testing on several file extensions and the zero never changed. Here are the relevant settings: {
"font_face": "JetBrains Mono Regular",
"font_options":
[
"dlig",
"ss01",
"ss02",
"ss03",
"ss04",
"ss05",
"ss06",
"ss19",
"ss20",
"onum",
"zero"
],
"font_size": 13,
} |
Ah, I'm sorry. I originally linked to this issue from the Fira Code page and had assumed it was specific to that font. I definitely recommend it if you aren't married to JetBrains. It's got a working slashed zero by default as well as programming ligatures |
Oh yeah I know about Fira Code and while I've tried it before I really like how JetBrains Mono feels. |
Currently only Generally such changes happen because we are doing a chunk of related work (in this case on font handling), we have a bug that needs to be fixed, or we get more than a few people asking for a feature. I'm not opposed to adding such support in the future, I just don't know exactly when that will happen. Partially just because there are plenty of competing feature requests and bug reports to pay attention to also. |
I guess you could use something like FontForge (free and open source) to edit the zero glyph to bake in the slash. |
Ahh, I was under the incorrect assumption that implementation would be trivial. Thanks for the insight. For my end, I could see about swapping the default zero with the slash. A small bit of legwork but a helluva lot easier than flagging bits. EDIT: FontForge doesn't seem to support |
It definitely supports ttf files, but I'm pretty sure the stylistic sets this issue is discussing pertains only to Opentype fonts. |
@Sharklops Ah, must be an issue with the app (it's been installed for a while). I just installed the latest FontLab and am using the trial to figure things out. EDIT: My fudging around in FontLab worked! |
You can remap characters in a font without using a graphical font editor. It’s better to do it with scripting because that way you can be fairly sure nothing else is changed/broken in the fonts. I have an example Python script to switch a slashed zero with the default zero in my Sudo font repo. You can switch any other character by adding its info like in line 36, you just have to know its Unicode value ( |
@jenskutilek - thanks, I only just realized that after messing around in FontForge for way too long. But I did manage to get the slashed/dotted zero in Fira Code working right with Sublime Text. Fira Code uses the |
Iosevka has a set of non-standard tags for language-specific ligations, 14 |
Just had the same issue trying to toggle specific character variants ( I get that this is probably not a very high priority issue since it's mostly an aesthetics thing, but hopefully it's tackled at some point |
It's 2023, still waiting for "slashed zero" support. |
This is needed for Verilog assignment ligature ( |
Just adding a 2024 bump to this request for more complete opentype feature support. Thanks! |
Cascadia Code is another font affected by this. |
Still nothing? |
+1. I think OpenType support should be a baseline expectation for a non-free text editor in 2024. Fingers crossed I'll see it in the changelogs soon. |
Won't hold my breath. This issue was opened in 2018. Clearly this is something they are unwilling to support or consider. It requires some refactoring -> #2302 (comment). |
Yeah, you're probably right. My license just expired. I think this is a "vote with my wallet" situation for me. I'll upgrade when this is supported. |
I was happy to see support for OpenType Stylistic Sets in the current ST version. Could you also add support for the "slashed zero" OpenType feature (feature tag: "zero")? The code for stylistic sets should be the same that's needed to support "zero".
Font makers could duplicate the "slashed zero" replacement into a stylistic set and thus make it accessible in the current ST builds, but it is better to use a more specific OT feature than a general one. The contents of stylistic set is not specified, and varies between different fonts, while the slashed zero feature is identical across fonts.
The text was updated successfully, but these errors were encountered: