aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/config.rs b/src/config.rs
index e7ab3403..2a2ba6db 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -1467,13 +1467,9 @@ impl Font {
}
/// Get a font clone with a size modification
- pub fn with_size_delta(self, delta: f32) -> Font {
- let mut new_size = self.size.as_f32_pts() + delta;
- if new_size < 1.0 {
- new_size = 1.0;
- }
+ pub fn with_size(self, size: Size) -> Font {
Font {
- size : Size::new(new_size),
+ size,
.. self
}
}