Combine ltr and rtl layout
This commit is contained in:
parent
22a0a2a3ed
commit
92c20fd6e1
2 changed files with 22 additions and 64 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue