Removed fonts and added getSelectedText function