aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Ramine <nox@nox.paris>2019-11-21 13:28:58 +0100
committerAnthony Ramine <nox@nox.paris>2019-11-25 10:54:46 +0100
commita5e55ddb201c2a4d314bf333a126d8595138c91c (patch)
treebcfc2ed4e7b5066cdf4ed4c746d72401627e0ce2
parent6f49dc23565b2041930f9ddf18779511bfc70de1 (diff)
downloadservo-a5e55ddb201c2a4d314bf333a126d8595138c91c.tar.gz
servo-a5e55ddb201c2a4d314bf333a126d8595138c91c.zip
Introduce GlyphStore::total_advance
-rw-r--r--components/gfx/text/glyph.rs5
1 files changed, 5 insertions, 0 deletions
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
@@ -453,6 +453,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)
}