Ex is a measurement of the font height to the height of the lowercase ‘x’ in that particular font family.  The ex-unit is thus defined as the font’s ‘x-height’.