• Status Closed
  • Percent Complete
  • Task Type Bug Report
  • Category Enhanced Syntax Highlighting
  • Priority Very Low
  • Reported Version 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

FS#36 - Custom Syntax Font Names not Displayed as System Fonts


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 Beta
wmj commented on 02.02.2016 08:57

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.

wmj commented on 02.02.2016 09:07

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...

wmj commented on 02.02.2016 09:11

I made screen shot and also uploaded the theme file for your test.

Martin Topfstedt commented on 02.02.2016 18:00

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.


Available keyboard shortcuts


Task Details

Task Editing