mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Basic support for bidirectional text
This commit is contained in:
parent
b386d7ae44
commit
dfac8ce4a1
20 changed files with 309 additions and 107 deletions
|
@ -1294,7 +1294,7 @@ impl ScaledFontExtensionMethods for ScaledFont {
|
|||
let mut azglyphs = vec!();
|
||||
azglyphs.reserve(range.length().to_usize());
|
||||
|
||||
for slice in run.natural_word_slices_in_range(range) {
|
||||
for slice in run.natural_word_slices_in_visual_order(range) {
|
||||
for (_i, glyph) in slice.glyphs.iter_glyphs_for_char_range(&slice.range) {
|
||||
let glyph_advance = glyph.advance();
|
||||
let glyph_offset = glyph.offset().unwrap_or(Point2D::zero());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue