aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/font.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/gfx/font.rs')
-rw-r--r--components/gfx/font.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/gfx/font.rs b/components/gfx/font.rs
index bb9ff7b3d45..8e5a80939ab 100644
--- a/components/gfx/font.rs
+++ b/components/gfx/font.rs
@@ -23,6 +23,7 @@ use text::shaping::ShaperMethods;
use time;
use unicode_script::Script;
use util::cache::HashCache;
+use webrender_traits;
static TEXT_SHAPING_PERFORMANCE_COUNTER: AtomicUsize = ATOMIC_USIZE_INIT;
@@ -100,6 +101,7 @@ pub struct Font {
pub shaper: Option<Shaper>,
pub shape_cache: HashCache<ShapeCacheEntry, Arc<GlyphStore>>,
pub glyph_advance_cache: HashCache<u32, FractionalPixel>,
+ pub font_key: Option<webrender_traits::FontKey>,
}
bitflags! {