Revert "Switch unicode-linebreak to xi-unicode for ~25% faster builds"

This fixes ZJW emoji support.

This reverts commit c1262eca74.
This commit is contained in:
Jeremy Soller 2022-10-24 14:11:52 -06:00
parent 564dab009c
commit 92a83fc4a6
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ rustybuzz = "0.5"
swash = "0.1" swash = "0.1"
sys-locale = "0.2" sys-locale = "0.2"
unicode-bidi = "0.3" unicode-bidi = "0.3"
xi-unicode = "0.3.0" unicode-linebreak = "0.1"
unicode-script = "0.5" unicode-script = "0.5"
[workspace] [workspace]

View file

@ -245,7 +245,7 @@ impl<'a> FontMatches<'a> {
let mut words = Vec::new(); let mut words = Vec::new();
let mut start_word = 0; let mut start_word = 0;
for (end_lb, _) in xi_unicode::LineBreakIterator::new(span) { for (end_lb, _) in unicode_linebreak::linebreaks(span) {
let mut start_lb = end_lb; let mut start_lb = end_lb;
for (i, c) in span[start_word..end_lb].char_indices() { for (i, c) in span[start_word..end_lb].char_indices() {
if start_word + i == end_lb { if start_word + i == end_lb {