diff --git a/components/gfx/text/glyph.rs b/components/gfx/text/glyph.rs index 52faf0c5480..7492064e3f7 100644 --- a/components/gfx/text/glyph.rs +++ b/components/gfx/text/glyph.rs @@ -452,6 +452,11 @@ impl<'a> GlyphStore { } } + #[inline] + pub fn total_advance(&self) -> Au { + self.total_advance + } + #[inline] pub fn len(&self) -> ByteIndex { ByteIndex(self.entry_buffer.len() as isize)