Font line height issue

Hi, I noticed that some fonts are not centred vertically, when you put them next to an icon and use Auto Layout a font can look lower or higher by 1-2px. What is the best way to approach the alignment of this?

Eg. Segoe UI font.

Hey Rafal, thanks for reaching out!

You can try using vertical trim to remove extra space above and below text. More info here:
https://help.figma.com/hc/en-us/articles/360039956634-Explore-text-properties#h_01H96FW9Z3W7J7Z2HEN8V17BZT