Retrieving the Font Name from a TTF File

You can always get the font name of one of your installed fonts. But what if the font is still not installed in the system and you want to know its name programmatically?