Fixes for RTL selection
This commit is contained in:
parent
334a45a5f4
commit
ad6555e79f
3 changed files with 57 additions and 26 deletions
|
|
@ -12,6 +12,7 @@ pub struct FontLayoutGlyph<'a> {
|
|||
|
||||
pub struct FontLayoutLine<'a> {
|
||||
pub line_i: TextLineIndex,
|
||||
pub rtl: bool,
|
||||
pub glyphs: Vec<FontLayoutGlyph<'a>>,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -166,6 +166,7 @@ impl<'a> FontShapeLine<'a> {
|
|||
layout_i,
|
||||
FontLayoutLine {
|
||||
line_i: self.line_i,
|
||||
rtl: self.rtl,
|
||||
glyphs: glyphs_swap,
|
||||
},
|
||||
);
|
||||
|
|
@ -200,6 +201,7 @@ impl<'a> FontShapeLine<'a> {
|
|||
layout_i,
|
||||
FontLayoutLine {
|
||||
line_i: self.line_i,
|
||||
rtl: self.rtl,
|
||||
glyphs: glyphs_swap,
|
||||
},
|
||||
);
|
||||
|
|
@ -216,6 +218,7 @@ impl<'a> FontShapeLine<'a> {
|
|||
layout_i,
|
||||
FontLayoutLine {
|
||||
line_i: self.line_i,
|
||||
rtl: self.rtl,
|
||||
glyphs,
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue