-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Hyphen based ligatures don't work in WPF #109
Comments
This makes Visual Studio very sad. -> is a very common symbol in C++, and I don't get pretty arrows for it. |
I've tracked this bug through various different platforms now, and it would be really great if it could get fixed. It's a small thing, but it would make everyone's programming life a little more fun. |
Problem persists in Visual Studio 2019.1 |
in vs2017 too, but not in vs code |
I suspect there's something wrong in TextItemizer that it breaks out hyphens ( |
I understand this originally was probably by design, but considering that hyphen based ligatures are a desired feature in some fonts, that original "by design" is not appropriate anymore and needs to be revisited. I would have contributed by researching the implementation and proposing a fix, but considering the text engine is going to stay closed source this really needs to be done by MS. |
~I heard that WPF used by Visual Studio uses
|
Edit: I moved the previous comment to appropriate location: #2025 |
Just to be clear, the last two comments are off-topic and have nothing to do with hyphen-based ligatures (which is what this issue is about). The text layouting is unrelated to the font rendering. |
Thanks for clarification @weltkante. I thought that setting layout and rendering are handled in the same piece of code. I will move my comments to #2025 |
Now both are closed. I think one should stay open, or not? |
#2025 has received some fix and this issue is still open because its not fixed yet. Not sure what exactly you mean? |
Any progress on this issue? |
Given Visual Studio .Net Core is open source.. is it possible to get into the source code and find and fix the bug for them and submit a pull request? Particularly if it's a WPF bug, seems like it might be possible. |
Neither Visual Studio is open source, nor the part of WPF that does text processing. I already mentioned this above, Microsoft has to fix this bug, the community cannot help. |
Any progress ? |
Obviously not. WPF might be open source but repo got owned by WinUI team and they don't know much about C# or WPF. For new features only chance is a community pull request. And the last pull request which added a new feature was ignored for months, then closed without merging. |
thank u for your reply. there is no hope . ms does not care about it. |
I've mentioned it in VS2022 YouTube Chat, and they reacted to the comment: https://www.youtube.com/watch?v=lsInDJdx6As |
Its at 22:14 btw for the benefit of everyone |
I disagree. Closing this thread won't help with getting the problem fixed. Anyone who doesn't want "spam" can unsubscribe from this thread. If anything, "spamming" is the only way people can express their interest in this problem. |
Still broken! |
Joining the fray. |
Joining the Line |
getting the popcorn and sitting at the corner of the room to watch the lack of progress happening in real time. |
I'm calling it now, GTA 6 will be released before this issue gets fixed. |
better support for ligatures in general would be good, the newly released Monaspace from MS themselves doesn't seem to really work in Visual Studio. |
Wow, this issue is several years old! The installation of Monaspace and the following failure to show the hypen based ligatures is what brought me here. I suppose in the grand scheme of things, this is a minor issue. I won't be hard on the VS devs for this. But if this ever does get fixed, I'll be very happy! |
Visual Studio 17.8.1 still has this issue 😭 |
Its kind of ridiculous that this is still an issue. It has been several years now. |
Please fix |
Visual Studio 17.8.4 , such a time-honored issue. |
still broken lol |
It's a meme at this point |
Still broken. |
Thank you all who pushed for a resolution to this issue. It's your persistent requests which has helped us prioritize it, and I am pleased to announce that we have fixed this and it will be available in .NET9 preview 4. Brief summary of what has changed: A call to Here is a sneak peek of how it looks like: hyphenLigatureDemo-Small2.mp4Please note that this feature is only available for .NET 9(preview4) onwards. We also want to express heartfelt gratitude to @miloush for helping us with the code reviews and testing. |
@Kuldeep-MS Is it planned to backport it to .Net Framework ? My guess is no but it would be good to clarify because I've seen Visual Studio mentionned many times in this issue and Visual Studio still runs the .Net Framework version of WPF which means that if this fix is .Net Core only it will not fix Visual Studio. I'm trying to avoid cases where Visual Studio users might think that this issue being closed would mean that Visual Studio is supposed to be fixed. |
@ThomasGoulet73 - We have only made this change available on .NET Core currently. Backporting this to .NET framework is still under discussions with internal teams and at this point of time we cannot commit anything. But in the meantime we wanted collect enough evidences that this feature is not causing any regression. |
Is there a link wich commit fixes this? |
@jogibear9988 - The fix has been done in internal repo and since the component is not available publicly, we won't be able to share it here. |
Ah good to know. |
Text processing/rendering is a binary blob (compiled C++ code) thats downloaded during the build and linked into the C++ part of the WPF dll, otherwise I'm sure the community would have offered a fix already (I certainly would have looked into it) |
Is there any reason for this? |
@jogibear9988 - Reason for what? |
@pchaurasia14 He was asking what's the reason behind the fact that some parts of WPF are not open-sourced. It is true that if one hasn't spent time around here they won't know why since it is not explicitly mentioned for everyone to see. |
did they announce on build they will fix this? |
Yes, this was announced in BUILD 2024. |
See tonsky/FiraCode#259 for the full issue description.
Would be good to get this fixed for .NET Core 3.
The text was updated successfully, but these errors were encountered: