[librsvg/librsvg-2.48] Fix obsolete comment
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.48] Fix obsolete comment
- Date: Wed, 22 Apr 2020 18:39:14 +0000 (UTC)
commit f7f74629b1723162e2bfb7e421a86e22401958f3
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Apr 22 11:36:32 2020 -0500
Fix obsolete comment
rsvg_internals/src/length.rs | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/rsvg_internals/src/length.rs b/rsvg_internals/src/length.rs
index a188baae..55a1383a 100644
--- a/rsvg_internals/src/length.rs
+++ b/rsvg_internals/src/length.rs
@@ -360,10 +360,9 @@ fn font_size_from_values(values: &ComputedValues, params: &ViewParams) -> f64 {
LengthUnit::Px => v.length,
- // This is the same default as used in Svg::get_size()
+ // The following implies that our default font size is 12, which
+ // matches the default from the FontSize property.
LengthUnit::Em => v.length * 12.0,
-
- // This is the same default as used in Svg::get_size()
LengthUnit::Ex => v.length * 12.0 / 2.0,
// FontSize always is a Both, per properties.rs
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]