diff options
author | Anthony Ramine <nox@nox.paris> | 2019-11-21 13:28:58 +0100 |
---|---|---|
committer | Anthony Ramine <nox@nox.paris> | 2019-11-25 10:54:46 +0100 |
commit | a5e55ddb201c2a4d314bf333a126d8595138c91c (patch) | |
tree | bcfc2ed4e7b5066cdf4ed4c746d72401627e0ce2 | |
parent | 6f49dc23565b2041930f9ddf18779511bfc70de1 (diff) | |
download | servo-a5e55ddb201c2a4d314bf333a126d8595138c91c.tar.gz servo-a5e55ddb201c2a4d314bf333a126d8595138c91c.zip |
Introduce GlyphStore::total_advance
-rw-r--r-- | components/gfx/text/glyph.rs | 5 |
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) } |