Added support for textAlign = NSTextAlignCenter