A method and apparatus for support of bi-directional text in legacy applications
is disclosed. The method may be used in different embodiments for either monospace
or proportionally spaced fonts. In general, the method involves first flipping
all of the text, and thereby putting most of the text into its proper position
and orientation. The method then involves finding any foreign (left-to-right) text
within the flipped text, and flipping it back.