awesome-inc / FontAwesome.Sharp

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

icon not centered #44

Closed mayurjansari closed 3 years ago

mayurjansari commented 4 years ago

in previous version 5.13 icon was center but now in this 5.14 icon slightly right side 5 13 5 14

mkoertgen commented 4 years ago

Hi @mayurjansari ,

Thanks for investigating. If you have some time to spare a PR would be much appreciated.

FernandoCalmet commented 4 years ago

Hi. I have the same issue. This happens only in the latest version of the nugget.

mkoertgen commented 4 years ago

Hi @FernandoCalmet , thanks for confirming. It looks like fixing the vertical alignment with #43 impacted the horizontal alignment.

mkoertgen commented 4 years ago

After a quick google search it looks like Graphics.MeasureString has accuracy issues.

As an alternative let's check on

as e.g. indicated in this ancient posts:

mkoertgen commented 3 years ago

Fixed together with #43