Seems libraries for this are hard to come by. Further research only turned up d-type (commercial), seems pretty powerful. Besides yesterday's Pango (used in gnome, it seems).
I found this page where basics are explained.
It's not particulary hard to do, but honestly I believe using existing functions, such as the suggested DirectWrite might prove easier / more performant.
I have no idea why current approach was taken though. Perhaps there's a specific need for it which makes using such functions impossible.
In case it is decided to implement this on top of current renderer, here's a SO question with an excellent answer on how to determine whether a character is RTL or not.
I found this page where basics are explained.
It's not particulary hard to do, but honestly I believe using existing functions, such as the suggested DirectWrite might prove easier / more performant.
I have no idea why current approach was taken though. Perhaps there's a specific need for it which makes using such functions impossible.
In case it is decided to implement this on top of current renderer, here's a SO question with an excellent answer on how to determine whether a character is RTL or not.
Last edited: