Skip to content

Commit fc612cf

Browse files
committed
chore: bump skrifa + harfrust
This makes the dep graph unify on read-fonts 0.39.x.
1 parent c24886c commit fc612cf

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ bitflags = "2.10.0"
1414
core_maths = { version = "0.1.1", optional = true }
1515
cosmic_undo_2 = { version = "0.2.0", optional = true }
1616
fontdb = { version = "0.23", default-features = false }
17-
harfrust = { version = "0.5.0", default-features = false }
17+
harfrust = { version = "0.8.4", default-features = false }
1818
hashbrown = { version = "0.17", optional = true, default-features = false }
1919
libm = { version = "0.2.16", optional = true }
2020
linebender_resource_handle = { version = "0.1.1", default-features = false }
@@ -23,7 +23,7 @@ modit = { version = "0.1.5", optional = true }
2323
rangemap = "1.7.1"
2424
rustc-hash = { version = "2.1.1", default-features = false }
2525
self_cell = "1.2.2"
26-
skrifa = { version = "0.40.0", default-features = false }
26+
skrifa = { version = "0.42.0", default-features = false }
2727
smol_str = { version = "0.3.2", default-features = false }
2828
syntect = { version = "5.3.0", optional = true }
2929
sys-locale = { version = "0.3.2", optional = true }

src/shape.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,12 @@ fn shape_fallback(
196196
}
197197
};
198198

199-
let glyph_buffer = font
200-
.shaper()
201-
.shape_with_plan(shape_plan, buffer, &rb_font_features);
199+
let glyph_buffer = font.shaper().shape(
200+
buffer,
201+
harfrust::ShapeOptions::new()
202+
.plan(Some(shape_plan))
203+
.features(&rb_font_features),
204+
);
202205
let glyph_infos = glyph_buffer.glyph_infos();
203206
let glyph_positions = glyph_buffer.glyph_positions();
204207

0 commit comments

Comments
 (0)