How does one obtain the font sizes associated with a given font?

eg of sort of thing required:

In a word processing programme you might have one drop-down list box
containing the available fonts and another one that displays all the font
sizes for the currently selected font.)

Would be grateful for any advice,coding etc on this.Thanks a lot.

Mike Turner.