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
So in my prior discussion I asked for some more details on how to compose allsorts into a more complete layout engine. In there was some stuff like:
Split text into runs of the same direction, script, font etc
Shape each run individually then compose them later
My question is, does allsorts shape text in logical or visual order? If I'm shaping a run of Arabic text, do I need to have unicode-bidi reverse the codepoints before passing them to Font::shape, or is TextDirection::RightToLeft enough?
P.S. This is an issue because it should be documented
The text was updated successfully, but these errors were encountered:
Had to double check this but confirming that shaping is done in logical order so there is no need to reverse the input text when using TextDirection::RightToLeft.
P.S. This is an issue because it should be documented
I'll keep it open until the docs have been updated.
So in my prior discussion I asked for some more details on how to compose
allsorts
into a more complete layout engine. In there was some stuff like:My question is, does allsorts shape text in logical or visual order? If I'm shaping a run of Arabic text, do I need to have
unicode-bidi
reverse the codepoints before passing them toFont::shape
, or isTextDirection::RightToLeft
enough?P.S. This is an issue because it should be documented
The text was updated successfully, but these errors were encountered: