WIP Writing Modes support in layout code.