Font dialog returning wrong font style and size

  • Thread starter Thread starter Sudip_inn
  • Start date Start date
S

Sudip_inn

Guest
This way i select font style and size. here is screen shot

1599446.png

just see i choose font style Bold Oblique and select size 16 but font dialog returning style as FontStyle -> Bold, Italic

and size as FontSize -> 15.75

i use font dialog this way


FontDialog fontDlg = new FontDialog();

string fontstyle = fontDlg.Font.Style.ToString();
FontName = fontDlg.Font.Name;
FontSize = fontDlg.Font.Size.ToString();




what is wrong in my code for which font dialog returning wrong font size and style? please tell me what to change in my code?

thanks

Continue reading...
 
Back
Top