Visual Studio and .NET Framework Home
Visual Studio editor considers ligatures to be a single character
as By Design
8/10/2006 6:48:51 PM
Primary Feedback Item:
User(s) can reproduce this bug
If I switch my Visual Studio font to something that contains ligatures (for example, "Calibri" has a ligature for "fi") then Visual Studio will consider that ligature a single character. It should either not use ligatures at all for such combinations, or at least handle the "backspace" and cursor-ing properly.
Note the steps and "expected"/"actual" behaviour I describe below is only one symptom. There are other, for example, if you put your cursor to the left of the "fi" ligature, and press the right-arrow, it'll move the cursor to the right of the "i", not in between the "f" and the "i" as you would expect. Also, you cannot select just the "f" or just the "i", you can only select both.
Of course, this doesn't just affect the "fi" ligature, but any ligatures in the font. It's just that I hit the "fi" one quite a bit (I seem to have lots of variables with the word "file" in them...
I've attached a screenshot of the bug. The "fi" immediately to the left of the cursor is a ligature, and if I were to hit "backspace" at this point, it would delete the whole "fi" ligature, rather than just the "i".
Visual Studio 2005 Professional Edition
Windows XP Professional
Operating System Language
Steps to Reproduce
1. Change the font of the Visual Studio editor to Calibri (for example)
2. Type in "fi"
3. Hit backspace
Visual Studio will delete both the "i" AND the "f"
Only the "i" should be deleted.
to post a comment.
Please enter a comment.
to post a workaround.
Please enter a workaround.
on 8/10/2006 at 6:54 PM
A workaround is to not use a font which include ligatures.
© 2014 Microsoft