awesome-inc / FontAwesome.Sharp

A library for using Font Awesome in WPF & Windows Forms applications
Apache License 2.0
376 stars 87 forks source link

Image and text are not horizontal aligned. #109

Open WilliamQue opened 1 year ago

WilliamQue commented 1 year ago

Please see the pic, the first control is a toolstriplabel, and the second is a icontoolstripbutton, there are 2 problems:

  1. It seems that the horizontal central line of image is a little higher than text on each control;
  2. the horizontal central line of content on toolstriplabel is a little than that on icontoolsstripbutton.

For toolstriplabel :

 GlobalImageList.AddIcons(Color.Red, IconHelper.DefaultSize, new IconChar[] { IconChar.UserAlt});
 GlobalImageList.ImageSize = new Size(28,28);
 lblUser.Image = GlobalImageList.Images[2];

For icontoolstripbutton: all settings are done in property wiindow directly.

Font of them is Microfoft Yahei UI. Image Size : 28 Control with property ImageScaling will be set None.

1

Env: win10 + .net framework 4.8 + winform

mkoertgen commented 1 year ago

Hi @WilliamQue ,

Not sure what to do about it. Looks more like an alignment issue with the toolstrip label itself.