Added code for shape text mode, although not functional