If your problem is with unit conversion, you can use em instead of px
Although em allows decimal numbers, it does not alter the rendering accuracy. 0.5px or equivalent accuracy is not displayed in browsers - it will become either 0 or 1px. Just because the screen cannot display half a pixel, at best it can approximate this with anti-aliasing.
For smaller fonts, anti-aliasing is likely to look worse than spacing. Another option is to search for the web font at the spacing you want by default. This way you will get similar results that you want, but would probably mean changing the font.
CSS spacing is just not as accurate as Photoshop. One of the reasons is that Photoshop also allows you to print with a screen / pixel resolution that you have to live with pixel precision. Although theoretically this is possible with a letter spacing that becomes more accurate with scaling, etc., I donβt know of any implementation that would really work that way.
If the correct spacing between the letters is really important to you, you can try to use SIFR to more accurately select the fonts than the browser is capable of - they can use anti-aliasing. Obviously, this will only make sense if the distance between the letters is a big problem.
source share