WinForms font issue

  • Thread starter Thread starter Emily
  • Start date Start date
E

Emily

I'm relativley new to .NET but one thing that has instantly hit me is that
text doesn't seem to draw correctly in controls like the label and frame.

The issue is that labels draw with a wider horizontal font-spacing than they
should.

It's a small problem but it totally screws trying to have a uniform look &
feel. For example, having a listview and label on a WinForm the label will
look different than the information in the listview.

This issue is particularly noticable with the Tahoma font.

Is it fixable?

Em
 
Emily said:
I'm relativley new to .NET but one thing that has instantly hit me is that
text doesn't seem to draw correctly in controls like the label and frame.

The issue is that labels draw with a wider horizontal font-spacing than
they should.

It's a small problem but it totally screws trying to have a uniform look &
feel. For example, having a listview and label on a WinForm the label will
look different than the information in the listview.

This issue is particularly noticable with the Tahoma font.

The issue is caused by GDI+. Some controls are drawn using GDI+, others are
drawn using GDI. GDI doesn't suffer from this problem.
Is it fixable?

Set the control's 'FlatStyle' property to 'System'.
 
Awesome,

Thanks so much for that.


Herfried K. Wagner said:
The issue is caused by GDI+. Some controls are drawn using GDI+, others
are drawn using GDI. GDI doesn't suffer from this problem.


Set the control's 'FlatStyle' property to 'System'.
 
Back
Top