Add a bi-directional text demo

Closes #1180