Description of the Issue
When defining new highlighting rules for a custom language, opening the "Styler dialog" and providing an arbitrary string in the inputs for the font options will crash the program
Steps to Reproduce the Issue
- Define a new language for highlighting keywords
- Open the Styler dialog to edit text style
- Instead of selecting a font name and font size from the combo-box, write directly an arbitrary string and press enter
Expected Behavior
Either detect closest match for user input or leave input field empty
Actual Behavior
Program crash
Debug Information
Notepad++ v7.2.2 (32-bit)
Build time : Nov 27 2016 - 16:31:07
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10
Plugins : mimeTools.dll NppConverter.dll NppExport.dll PluginManager.dll

