From ead828d992c411b61594cb91400e9f6f26772bfe Mon Sep 17 00:00:00 2001 From: hinaria Date: Thu, 15 Jun 2017 23:46:17 +1000 Subject: [PATCH] scale line gap by em size --- components/gfx/platform/windows/font.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/gfx/platform/windows/font.rs b/components/gfx/platform/windows/font.rs index 6046a70770f..5746739a107 100644 --- a/components/gfx/platform/windows/font.rs +++ b/components/gfx/platform/windows/font.rs @@ -372,7 +372,7 @@ impl FontHandleMethods for FontHandle { descent: au_from_du_s(dm.descent as i32), max_advance: au_from_pt(0.0), // FIXME average_advance: au_from_pt(0.0), // FIXME - line_gap: au_from_du((dm.ascent + dm.descent + dm.lineGap as u16) as i32), + line_gap: au_from_du_s((dm.ascent + dm.descent + dm.lineGap as u16) as i32), }; debug!("Font metrics (@{} pt): {:?}", self.em_size * 12., metrics); metrics