summaryrefslogtreecommitdiff
path: root/src/graphics/font.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics/font.rs')
-rw-r--r--src/graphics/font.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/graphics/font.rs b/src/graphics/font.rs
index 78a28a3..c20e691 100644
--- a/src/graphics/font.rs
+++ b/src/graphics/font.rs
@@ -58,6 +58,10 @@ pub fn ascent(scale: f32) -> f32 {
FONT.ascent_unscaled() * factor(scale)
}
+pub fn height(scale: f32) -> f32 {
+ FONT.height_unscaled() * factor(scale)
+}
+
pub fn line_height(scale: f32) -> f32 {
(FONT.height_unscaled() + FONT.line_gap_unscaled()) * factor(scale)
}