Tag Archives: sdet font size

Set font size to fit a wrapped label in C#

The example Set font size to fit a label in C# shows how you can pick a font size to make text large but still fit inside a Label. This example is similar except it allows the text to wrap … Continue reading

Posted in drawing, fonts, graphics | Tagged , , , , , , , , , , , , , , | Leave a comment

Set font size to fit a label in C#

This program uses the following method to calculate the largest font size that the Label can use while still allowing the sample text to fit. // Return the largest font size that lets the text fit. private float GetFontSize(Label label, … Continue reading

Posted in drawing, fonts, graphics | Tagged , , , , , , , , , , , , | Leave a comment