You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon reflection, if I go ahead and try to write my own bidirectional layout algorithm and text shaping, it'll be at best a partially correct solution. That would be insufficient. The best approach with complex subjects like Unicode is to rely on existing, widely used libraries. I've decided to try to build a solution on top of GNU FriBidi (LGPL) and HarfBuzz (Old MIT). At least the former has no additional dependencies, and hopefully the latter can be used without GLib/Freetype as well.
Lagrange's text renderer needs to support both LTR and RTL scripts.
The text draw function already gets information about the available horizontal bounds, so that can be used for aligning to the right.
Additional fonts need to made available, too (see #195).
For reference: Unicode Bidirectional Algorithm
The text was updated successfully, but these errors were encountered: