diff --git a/components/gfx/platform/freetype/font.rs b/components/gfx/platform/freetype/font.rs index dfe649a0ca7..b121e869865 100644 --- a/components/gfx/platform/freetype/font.rs +++ b/components/gfx/platform/freetype/font.rs @@ -238,7 +238,7 @@ impl FontHandleMethods for FontHandle { let average_advance = self.glyph_index('0') .and_then(|idx| self.glyph_h_advance(idx)) .map(|advance| self.font_units_to_au(advance)) - .unwrap_or(max_advance_width); + .unwrap_or(max_advance); let metrics = FontMetrics { underline_size: underline_size,