diff options
Diffstat (limited to 'components/gfx/platform')
-rw-r--r-- | components/gfx/platform/freetype/font_list.rs | 1 | ||||
-rw-r--r-- | components/gfx/platform/macos/font_list.rs | 1 | ||||
-rw-r--r-- | components/gfx/platform/macos/font_template.rs | 1 | ||||
-rw-r--r-- | components/gfx/platform/windows/font.rs | 2 | ||||
-rw-r--r-- | components/gfx/platform/windows/font_context.rs | 2 |
5 files changed, 2 insertions, 5 deletions
diff --git a/components/gfx/platform/freetype/font_list.rs b/components/gfx/platform/freetype/font_list.rs index e285a4eee58..faebcc8703b 100644 --- a/components/gfx/platform/freetype/font_list.rs +++ b/components/gfx/platform/freetype/font_list.rs @@ -12,7 +12,6 @@ use fontconfig::fontconfig::{ FcFontSetList, FcObjectSetCreate, FcObjectSetDestroy, FcPatternAddString, }; use fontconfig::fontconfig::{FcObjectSetAdd, FcPatternGetInteger}; -use libc; use libc::{c_char, c_int}; use std::ffi::CString; use std::ptr; diff --git a/components/gfx/platform/macos/font_list.rs b/components/gfx/platform/macos/font_list.rs index 624d9b9a4a9..845d48d825c 100644 --- a/components/gfx/platform/macos/font_list.rs +++ b/components/gfx/platform/macos/font_list.rs @@ -2,7 +2,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use core_text; use crate::text::util::unicode_plane; use ucd::{Codepoint, UnicodeBlock}; diff --git a/components/gfx/platform/macos/font_template.rs b/components/gfx/platform/macos/font_template.rs index ea6bd57e413..fb8d5e1eda6 100644 --- a/components/gfx/platform/macos/font_template.rs +++ b/components/gfx/platform/macos/font_template.rs @@ -5,7 +5,6 @@ use app_units::Au; use core_graphics::data_provider::CGDataProvider; use core_graphics::font::CGFont; -use core_text; use core_text::font::CTFont; use serde::de::{Error, Visitor}; use serde::{Deserialize, Deserializer, Serialize, Serializer}; diff --git a/components/gfx/platform/windows/font.rs b/components/gfx/platform/windows/font.rs index b654b47e0cb..30fce0c963d 100644 --- a/components/gfx/platform/windows/font.rs +++ b/components/gfx/platform/windows/font.rs @@ -13,7 +13,6 @@ use crate::platform::font_template::FontTemplateData; use crate::platform::windows::font_context::FontContextHandle; use crate::platform::windows::font_list::font_from_atom; use crate::text::glyph::GlyphId; -use dwrote; use dwrote::{Font, FontFace, FontFile}; use dwrote::{FontStretch, FontStyle}; use servo_atoms::Atom; @@ -26,7 +25,6 @@ use style::values::computed::font::FontStyle as StyleFontStyle; use style::values::generics::font::FontStyle as GenericFontStyle; use style::values::generics::NonNegative; use style::values::specified::font::FontStretchKeyword; -use truetype; // 1em = 12pt = 16px, assuming 72 points per inch and 96 px per inch fn pt_to_px(pt: f64) -> f64 { diff --git a/components/gfx/platform/windows/font_context.rs b/components/gfx/platform/windows/font_context.rs index 7d304ed138d..400988d032f 100644 --- a/components/gfx/platform/windows/font_context.rs +++ b/components/gfx/platform/windows/font_context.rs @@ -2,6 +2,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +use malloc_size_of::malloc_size_of_is_0; + #[derive(Clone, Debug)] pub struct FontContextHandle; |