Gets the font of the selected text. Takes a callback function as a parameter which is called with the font of the selected text.
A function with one parameter. Is called with the bold attribute of the selected text. The attribute is an empty string when the text selection contains multiple characters with mixed font names.