Added support for rotation of text in header and footer