diff options
author | Martin Robinson <mrobinson@igalia.com> | 2024-06-19 22:26:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-19 20:26:19 +0000 |
commit | cd2ab36759dc58acdeb2b8321c38b7345b524a63 (patch) | |
tree | 30b940ca93f61d937f719c214d66f22374c90b2f /components/layout_2020/display_list/mod.rs | |
parent | 9f8118abc7fd9aba49e422cf13b5243e3b582fdc (diff) | |
download | servo-cd2ab36759dc58acdeb2b8321c38b7345b524a63.tar.gz servo-cd2ab36759dc58acdeb2b8321c38b7345b524a63.zip |
Rename `gfx` to `fonts` (#32556)
This crate only takes care of fonts now as graphics related things are
split into other crates. In addition, this exposes data structures at
the top of the crate, hiding the implementation details and making it
simpler to import them.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
Diffstat (limited to 'components/layout_2020/display_list/mod.rs')
-rw-r--r-- | components/layout_2020/display_list/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout_2020/display_list/mod.rs b/components/layout_2020/display_list/mod.rs index 22f5aeec337..dd91f3b72c8 100644 --- a/components/layout_2020/display_list/mod.rs +++ b/components/layout_2020/display_list/mod.rs @@ -10,7 +10,7 @@ use base::WebRenderEpochToU16; use embedder_traits::Cursor; use euclid::{Point2D, SideOffsets2D, Size2D}; use fnv::FnvHashMap; -use gfx::text::glyph::GlyphStore; +use fonts::GlyphStore; use net_traits::image_cache::UsePlaceholder; use servo_geometry::MaxRect; use style::color::{AbsoluteColor, ColorSpace}; @@ -962,7 +962,7 @@ fn glyphs( mut baseline_origin: PhysicalPoint<Length>, justification_adjustment: Length, ) -> Vec<wr::GlyphInstance> { - use gfx_traits::ByteIndex; + use fonts_traits::ByteIndex; use range::Range; let mut glyphs = vec![]; |