Skip to content

Commit e5d231e

Browse files
drottcopybara-github
authored andcommitted
Vendor HarfRust and build HarfRust shaping backend in HarfBuzz
Third-party review approved in: https://groups.google.com/a/google.com/g/chrome-atls-discuss/c/CWb6UNPdrW0/m/fQHEidz-CQAJ We add the HarfRust Rust implementation of HarfBuzz to develop towards pixel-perfect matching of the existing shaping behavior and to evaluate performance compared to the exist C++ shaper library, with the aim to eventually migrate over. More details in the third-party review above. Bug: 427409139 Binary-Size: Rust version added for performance and compat evaluation. Fuchsia-Binary-Size: See commit message. Change-Id: I0e73998d23073d79822ef359837945b7445e2252 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7866312 Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org> Auto-Submit: Dominik Röttsches <drott@chromium.org> Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org> Cr-Commit-Position: refs/heads/main@{#1637948} NOKEYCHECK=True GitOrigin-RevId: 853d3b977dc85cab06136cccba08e11180881bce
1 parent 2094b4b commit e5d231e

90 files changed

Lines changed: 35046 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

chromium_crates_io/Cargo.lock

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chromium_crates_io/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ chrono = "0.4.43"
2525
cxx = "1"
2626
fend-core = "1"
2727
font-types = "0.11.3"
28+
harfrust = "0.8.0"
2829
hex = "0.4"
2930
hmac-sha256 = "1.1.12"
3031
indexmap = "2.12.1"

chromium_crates_io/gnrt_config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,9 @@ multiversion_cleanup_bug = "https://crbug.com/493648964"
381381
allow_first_party_usage = false
382382
extra_kv = { allow_unsafe = true }
383383

384+
[crate.harfrust]
385+
extra_kv = { allow_unsafe = false }
386+
384387
[crate.hashbrown.extra_kv]
385388
# `hashbrown` crate is implicitly trusted because it comes from
386389
# https://github.com/rust-lang/ (and we already implicitly trust maintainers of
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"files":{}}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"git": {
3+
"sha1": "d9ca71377d0ab07e805dcd724412d79575f4269e"
4+
},
5+
"path_in_vcs": "harfrust"
6+
}

0 commit comments

Comments
 (0)