From a5e55ddb201c2a4d314bf333a126d8595138c91c Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Thu, 21 Nov 2019 13:28:58 +0100 Subject: [PATCH] Introduce GlyphStore::total_advance --- components/gfx/text/glyph.rs | 5 +++++ 1 file changed, 5 insertions(+) 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)