The height of capital letters is called the cap height, and it might match the ascender height, but it can also be shorter, depending on the typeface.