Text style and buffer working