- Status Closed
- Percent Complete
- Task Type Bug Report
- Category Enhanced Syntax Highlighting
- Priority Very Low
- Reported Version 1.0.0.3166 Beta
- Due in Version Undecided
- Votes
- Private
Attached to Project: Codinion
Opened by wmj - 02.02.2016
Last edited by Martin Topfstedt - 02.02.2016
Opened by wmj - 02.02.2016
Last edited by Martin Topfstedt - 02.02.2016
FS#36 - Custom Syntax Font Names not Displayed as System Fonts
Hello,
I am using a Chinese operating system, and I found that the syntax font family names are not displayed as the system's Fonts folder.
The following statement could be used to list all GDI+ supported fonts in the system and the names are displayed respecting locale settings:
new System.Drawing.Text.InstalledFontCollection().Families
Closed by Martin Topfstedt
02.02.2016 19:19
Reason for closing: Fixed
Additional comments about closing: in 1.0.0.3216 Beta
02.02.2016 19:19
Reason for closing: Fixed
Additional comments about closing: in 1.0.0.3216 Beta
It seemed that this issue could lead to the corruption of the currentTheme file for syntax highlighting.
Having set a custom font family and closed VS, I found that some syntax highlight rules were not loaded.
There were some exceptions throw.
I removed the CurrentTheme.xml file in the theme folder.
Afterward, no more logs were generated.
However, most rules were not restored after restarting VS.
For instance, "Constructor", "Method Parameter", "Variable", etc...
I made screen shot and also uploaded the theme file for your test.
Wow thanks. i will have a look asap.
If you delete the CurrentTheme.xml file all your theme settings are gone and resetted to the default at the next visual studio start.
You could have just tried to remove the Font Tag from the CurrentTheme.xml and it would have worked again.