Font size units measure the size of type, either as a physical length for print, such as points, millimeters, and Q, or as a CSS length for screens, such as px, rem, and em.
The size of a font is the height of its em square, the box that the type is designed in, not the height of a capital letter. Two fonts at the same size can look larger or smaller, because each font draws its letters differently inside the em square.