[librsvg: 12/27] LetterSpacing::to_user - renamed from normalize; use NormalizeParams
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 12/27] LetterSpacing::to_user - renamed from normalize; use NormalizeParams
- Date: Mon, 10 May 2021 16:06:43 +0000 (UTC)
commit 754234bb285e594f4947608ff000e34ea540df14
Author: Federico Mena Quintero <federico gnome org>
Date: Fri May 7 20:26:48 2021 -0500
LetterSpacing::to_user - renamed from normalize; use NormalizeParams
src/font_props.rs | 4 ++--
src/text.rs | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/font_props.rs b/src/font_props.rs
index c1baa99e..c34e0337 100644
--- a/src/font_props.rs
+++ b/src/font_props.rs
@@ -369,8 +369,8 @@ impl LetterSpacing {
LetterSpacing::Value(spacing)
}
- pub fn normalize(&self, values: &ComputedValues, params: &ViewParams) -> f64 {
- self.value().normalize(values, params)
+ pub fn to_user(&self, params: &NormalizeParams) -> f64 {
+ self.value().to_user(params)
}
}
diff --git a/src/text.rs b/src/text.rs
index 2466a1b7..533d1d05 100644
--- a/src/text.rs
+++ b/src/text.rs
@@ -823,7 +823,7 @@ fn create_pango_layout(
attr_list.insert(
pango::Attribute::new_letter_spacing(to_pango_units(
- values.letter_spacing().normalize(values, &view_params),
+ values.letter_spacing().to_user(¶ms),
))
.unwrap(),
);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]