Skip to main content

.Net Grid does not seem to respect ClearType when rendering text.

Comments

3 comments

  • Dapfor Team

    Dear Joshua,

    The grid enables to specify fonts for different elements (rows, columns) on various hierarchical levels. If you want to use inherited font, the following snippet will demonstrate how to do it:

     

    public partial class MyForm : Form
    {
        public MyForm()
        {
            InitializeComponent();

    //...
            grid.Headers[0].Appearance.RowFont = Font;
            grid.Headers[0].Appearance.ColumnCaptionFont = Font;
    }
    }

     

    Best regards,

    Dapfor

     

    0
  • Joshua Heming

    Thank you for the quick repsonse. While this worked, it is still not rendering the font using ClearType. In the attached picture you can see the tab control heading renders "Dapfor Portfolio" in ClearType but the dapfor grid it contains is not respecting ClearType. Is there something I can change in one of the Paint event handlers (like setting the TextRenderingHint) to force the grid to use ClearType?

    Thanks




    cleartype.png
    0
  • Dapfor Team

    Dear Joshua,

    We can't reproduce the bug. On our side the grid paints text with ClearType fonts as expected. Could you wrire a small application demonstrating your problem?

    Best regards,

    Dapfor




    cleartype_fonts.png
    0

Please sign in to leave a comment.

Powered by Zendesk