How do I match a same font size pixel value in figma and in code?

Hi,

I get this result for a 17px type on the browser (left) and 17px on Figma (right). The same goes for general measurements when, for example, I draw a box.

Why is that and where could I start fixing it?

Many thanks,
João

You probably have non-100% zoom either in Figma or on your website. Make sure that you don’t have it in your browser:

image

And in Figma: https://help.figma.com/hc/en-us/articles/360049549913-Adjust-the-scale-of-the-Figma-Desktop-App-interface

Hi @Gleb ! Thanks for the quick response. Turns out I learned there is some meta viewport dark arts at play in our product. Closing this.