From e8e69f757ea701ae1cdd1f87bf3e35ed013edb31 Mon Sep 17 00:00:00 2001 From: Keith Simmons Date: Tue, 28 Jan 2020 16:33:15 -0800 Subject: [PATCH] fixed underlines --- src/renderer/caching_shaper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/caching_shaper.rs b/src/renderer/caching_shaper.rs index 365f849..15be69f 100644 --- a/src/renderer/caching_shaper.rs +++ b/src/renderer/caching_shaper.rs @@ -164,6 +164,6 @@ impl CachingShaper { pub fn underline_position(&mut self) -> f32 { let metrics = self.metrics(); - metrics.underline_position + -metrics.underline_position * self.base_size / metrics.units_per_em as f32 } }