diff --git a/src/components/gfx/font_context.rs b/src/components/gfx/font_context.rs index 911be74412b..707fb11d328 100644 --- a/src/components/gfx/font_context.rs +++ b/src/components/gfx/font_context.rs @@ -2,7 +2,7 @@ * 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 font::{Font, FontDescriptor, FontGroup, FontHandleMethods, FontStyle, +use font::{Font, FontDescriptor, FontGroup, FontHandleMethods, SelectorPlatformIdentifier}; use font::{SpecifiedFontStyle, UsedFontStyle}; use font_list::FontList; @@ -11,24 +11,12 @@ use servo_util::time::ProfilerChan; use platform::font::FontHandle; use platform::font_context::FontContextHandle; -use style::computed_values::font_weight; use azure::azure_hl::BackendType; use std::hashmap::HashMap; use std::rc::RcMut; -// TODO(Rust #3934): creating lots of new dummy styles is a workaround -// for not being able to store symbolic enums in top-level constants. -pub fn dummy_style() -> FontStyle { - return FontStyle { - pt_size: 20f64, - weight: font_weight::Weight300, - italic: false, - oblique: false, - families: ~"serif, sans-serif", - } -} pub trait FontContextHandleMethods { fn create_font_from_identifier(&self, ~str, UsedFontStyle) -> Result;