Combine ltr and rtl layout

This commit is contained in:
Jeremy Soller 2022-10-07 19:15:02 -06:00
parent 22a0a2a3ed
commit 92c20fd6e1
2 changed files with 22 additions and 64 deletions

View file

@ -230,6 +230,12 @@ impl<'a> FontMatches<'a> {
}
}
if para_rtl {
for word in words.iter_mut() {
word.glyphs.reverse();
}
}
if para_rtl != span_rtl {
words.reverse();
}