I have noticed that if you set the font size of an ultralabel to Arial 8 points that the letter spacing is different than from a regular microsoft label. Its either squeezed or streched.
Even on different machines the look is different. What causes this?
Hello Eddy,
You need to add the following reference to your project in order to use the mentioned code:
Infragistics2.Win.v12.1;
Then please use:
Infragistics.Win.DrawUtility.UseGDIPlusTextRendering = false;
Please feel free to let me know if a question about our toolset comes up on your mind.
Hi Mike,
This seems to be an old issue but it's new problem we have. We need less padding around text characters within cells of the grids.
I am not able to set this Infragistics.Win.DrawUtility.UseGDIPlusTextRendering = false
Is there a class I need to be using in order to set the UseGDIPlusTextRendering value?
Thanks
Eddy
I found when I then also set WrapText = false, then it's not expanded to this 70 pixels.
When I do this, the labels that are set to autosize will expand height to 70 pixels causing overlap in other controls.
Hi,
This is due to the fact that the UltraLabel is using GDI Plus text rendering. If you want the old GDI-style, you can set the TextRenderingMode propety property on the UltraLabel to GDI.
You can also set this globally for your whole application, instead of on each individual Infragistics control, by using the static property: