aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/text/shaping/harfbuzz.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/gfx/text/shaping/harfbuzz.rs')
-rw-r--r--components/gfx/text/shaping/harfbuzz.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/components/gfx/text/shaping/harfbuzz.rs b/components/gfx/text/shaping/harfbuzz.rs
index 9599dd61a12..47cf337011b 100644
--- a/components/gfx/text/shaping/harfbuzz.rs
+++ b/components/gfx/text/shaping/harfbuzz.rs
@@ -434,9 +434,7 @@ impl Shaper {
// We elect to only space the two required code points.
if character == ' ' || character == '\u{a0}' {
// https://drafts.csswg.org/css-text-3/#word-spacing-property
- let (length, percent) = options.word_spacing;
- advance =
- (advance + length) + Au::new((advance.0 as f32 * percent.into_inner()) as i32);
+ advance += options.word_spacing;
}
advance