Added possibility to specify text appearance