ttf: add function to extract font name