Implements vertical writing
Merge pull request #2686 from vyv03354/bug770409

Implement vertical writing