Font and font smoothing

Hello,
In my windows forms application System.Windows.Forms.ComboBox control have nice and crisp font, while SfComboBox right next to it seems to have some kind of font smooting applied which makes text in SfComboBox  look blurry. I did not set any properties on both controls. How can I force sfComboBox to use exactly the same font and font smoothing as regular System.Windows.Forms controls uses? I am running my app on Windows 10.

Thanks in advance,
Daniel

3 Replies

AA Arulraj A Syncfusion Team September 10, 2018 09:40 AM UTC

Hi Daniel, 
 
Thanks for using Syncfusion product. 
 
By default, SfComboBox editor style font face name is Segoe UI and size is 9 due to improve the look and feel. To change the appearance like ComboBox, you could use the EditorStyle.Font and EditorStyle.ForeColor property to change the default font style and forecolor. Please refer the following code example and the sample, 
 
Code example  
this.sfComboBox1.Style.EditorStyle.Font = this.comboBox1.Font;//FontFaceName = Segoe UI Semibold, size = 9.75f 
this.sfComboBox1.Style.EditorStyle.ForeColor = this.comboBox1.ForeColor;//Color.WindowsText 
 
Screenshot 
 
 
Arulraj A 



DA Daniel September 12, 2018 07:54 AM UTC

Thank you for your response, it seems to work. How about font on combo box popup? Even in your sample it is different, please see screenshots. I could not find a way to change the font also for popup.



MG Mohanraj Gunasekaran Syncfusion Team September 14, 2018 12:59 PM UTC

Hi Daniel, 
 
Thanks for your update. 
 
To change the style for dropdown items, you could use the ItemStyle.Font property. Please refer the following code example, 
 
Code example 
this.sfComboBox1.DropDownListView.Style.ItemStyle.Font = new Font("Segoe UI Semibold", 9.75f); 
 
Regards, 
Mohanraj G 


Loader.
Up arrow icon