write text to bitmap