Alignment & size of Wingdings character on Winforms button
Posted: Wed Apr 05, 2023 3:15 pm
These 2 equally sized pushbuttons both have a Wingdings character as Text on a Winforms form.
The right button is Wingdings 20 pt with TextAlign MiddleCenter. This looks good to me. BTW, it fits a bit better on 18 pt and then it still centers.
The left button is Wingdings 26 pt with TextAlignTopCenter. It does not look good, because it doesn't use nearly half of the upper part of the button. Changing from MiddleCenter to TopCenter doesn't even make any difference. Changing it (also) to Wingdings 20 pt does center the picture but it then looks considerably smaller than the character on the right button with the same point size. Enlarging it (as I did in the picture, to 26 pt) pushes it down on the button with no (obvious) way to center it, which should make it more visible.
Did anybody experience the same, and is there some explanation (or better: solution) for this?
Dick
The right button is Wingdings 20 pt with TextAlign MiddleCenter. This looks good to me. BTW, it fits a bit better on 18 pt and then it still centers.
The left button is Wingdings 26 pt with TextAlignTopCenter. It does not look good, because it doesn't use nearly half of the upper part of the button. Changing from MiddleCenter to TopCenter doesn't even make any difference. Changing it (also) to Wingdings 20 pt does center the picture but it then looks considerably smaller than the character on the right button with the same point size. Enlarging it (as I did in the picture, to 26 pt) pushes it down on the button with no (obvious) way to center it, which should make it more visible.
Did anybody experience the same, and is there some explanation (or better: solution) for this?
Dick