To fix in Photoshop: Duplicate the layer, control-click the duplicate layer in the layer list to bring up a menu, select “Convert to shape.” It’s no longer editable text, so do this when you've finalized the text, and keep the original text layer, but turn off its visibility.