Depends on the tool, sometimes just with trial and error - for example, if you look at the topic author’s screenshot, letter P is 7 pixels tall in the font but 54 pixels tall on the image, which comes out to 7.71 pixels per font pixel, and that’s not right at all.