Posted 8 September 2017, 12:29 pm ESTI'm trying to get my grid to look like Excel 2007, so I want to use the new Calibri font. It's installed on my machine, but I'm having trouble displaying it correctly.
Here is my code:
grid.Font = new Font("Calibri", 11, FontStyle.Regular, GraphicsUnit.Point);When I'm editing a cell, the font appears to be correct, but when I leave the cell, it gets ugly. The anti-aliasing is off, and it doesn't even look like the same font. If I use a bogus font name, it actually looks better, probably because it uses a default font. I'm attaching a screenshot.
_sheet.ColumnHeader.Rows.Font = new Font("Calibri", 11, FontStyle.Regular, GraphicsUnit.Point);