Fix bug in y offset of text background.
Additional documentation.