-
Notifications
You must be signed in to change notification settings - Fork 812
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
Add variant curved phi
glyph for U+03C6
#588
Comments
Thanks for the comment. A couple of points:
All that aside, I'm open to considering the addition of the curved variant under a stylistic set. It probably would make sense to do some sort of more extensive math-centric upgrade to the font at some point, and this would certainly fit into that work item. |
varphi
glyph for U+03C6
phi
glyph for U+03C6
Thanks for the quick answer (and thanks for the work on this font)!
I see, I didn't realize If we want to add the curved glyph, it should be mapped to If the above makes sense and with the intent of supporting both codepoints with distinct glyphs, it seems that the current glyph could be moved to |
Per the unicode spec I do appreciate the desire to differentiate the two forms, but I do not intend to change the current |
I see, thanks.
My use case is to write code (plain text) with Cascadia Mono and to have both glyphs available. Would that work with the Opentype feature? I suppose that would also require mapping |
Yup! Opentype feature support is dependent on the writing environment, and most offer at least basic support for stylistic sets. What do you use? |
The main editor would be VSCode. Does that mean you would select the font to be a hypothetical |
In VSCode, you would select |
Got it, thanks again for the discussion. I'll keep monitoring the release notes in case you do end up making the curved glyph (I have absolutely no idea how long it takes to make a glyph)! |
This phi stuff is quite confusing :), and I think the Unicode guidance isn't as clear (to me) as it could be: at http://unicode.org/reports/tr25/ But that last sentence:
is probably the reason why coding fonts have generally adopted a curved version of U+03C6, with Consolas being the exception that caused the confusion referred to above. |
Thanks for this page. The explanation seems clear to me, it's just that it leaves the choice to implementers on whether to use the curved or straight glyph for With variants, as mentioned by @aaronbell, it is possible to support both a straight or curved
That would certainly be my preference, but I don't write Greek text! They do mention that the curved form is used more often in text too, though I can't comment on that.
That might be because they were following the earlier standard? It sure would be nice to get it fixed though... |
Yes, the OpenType Stylistic Set or variations features work well in browser-based editors (VS-Code and Atom), it’s the terminal users who’d struggle, since many terminals and emulators are bad at OpenType support. |
Currently, Cascadia code displays the same glyph (phi with straight vertical bar) for both
U+03D5
andU+03C6
. It would be nice if the "curvy phi" glyph was added. Note that there exists confusion as to which glyph should match to which codepoint. For me personally, ideally it should match to latex/unicode-math:Here's what it looks like in vscode with Cascadia:
The above rendered correctly (in my opinion) by lualatex with unicode-math package:
Raw text, which depending on browser font might or might not render correctly:
Interestingly for me in the editor window the glyphs are correct but when rendered they are swapped (i.e.
U+03D5
gets the curvy symbol, wrong in my opinion).The text was updated successfully, but these errors were encountered: