Initial implementation of TextField.getTextFormat