add code for glyph text writer