diff options
Diffstat (limited to 'components/gfx')
-rw-r--r-- | components/gfx/font.rs | 2 | ||||
-rw-r--r-- | components/gfx/font_cache_task.rs | 4 | ||||
-rw-r--r-- | components/gfx/platform/macos/font_list.rs | 2 | ||||
-rw-r--r-- | components/gfx/text/shaping/harfbuzz.rs | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/components/gfx/font.rs b/components/gfx/font.rs index 8be825f3108..a81c51b4bda 100644 --- a/components/gfx/font.rs +++ b/components/gfx/font.rs @@ -185,7 +185,7 @@ impl Font { let result = self.handle.get_table_for_tag(tag); let status = if result.is_some() { "Found" } else { "Didn't find" }; - debug!("{:s} font table[{:s}] with family={}, face={}", + debug!("{} font table[{}] with family={}, face={}", status, tag.tag_to_str(), self.handle.family_name(), self.handle.face_name()); diff --git a/components/gfx/font_cache_task.rs b/components/gfx/font_cache_task.rs index a7bc98424ca..0b1ba4c9083 100644 --- a/components/gfx/font_cache_task.rs +++ b/components/gfx/font_cache_task.rs @@ -181,7 +181,7 @@ impl FontCache { // TODO(Issue #188): look up localized font family names if canonical name not found // look up canonical name if self.local_families.contains_key(family_name) { - debug!("FontList: Found font family with name={:s}", family_name.as_slice()); + debug!("FontList: Found font family with name={}", family_name.as_slice()); let s = &mut self.local_families[*family_name]; if s.templates.len() == 0 { @@ -199,7 +199,7 @@ impl FontCache { None } else { - debug!("FontList: Couldn't find font family with name={:s}", family_name.as_slice()); + debug!("FontList: Couldn't find font family with name={}", family_name.as_slice()); None } } diff --git a/components/gfx/platform/macos/font_list.rs b/components/gfx/platform/macos/font_list.rs index da0485713f8..4a10b0ee463 100644 --- a/components/gfx/platform/macos/font_list.rs +++ b/components/gfx/platform/macos/font_list.rs @@ -19,7 +19,7 @@ pub fn get_available_families(callback: |String|) { } pub fn get_variations_for_family(family_name: &str, callback: |String|) { - debug!("Looking for faces of family: {:s}", family_name); + debug!("Looking for faces of family: {}", family_name); let family_collection = core_text::font_collection::create_for_family(family_name.as_slice()); diff --git a/components/gfx/text/shaping/harfbuzz.rs b/components/gfx/text/shaping/harfbuzz.rs index d510126e7fd..4cf0575dbee 100644 --- a/components/gfx/text/shaping/harfbuzz.rs +++ b/components/gfx/text/shaping/harfbuzz.rs @@ -304,7 +304,7 @@ impl Shaper { debug!("{} -> {}", i, loc); } - debug!("text: {:s}", text); + debug!("text: {}", text); debug!("(char idx): char->(glyph index):"); for (i, ch) in text.char_indices() { debug!("{}: {} --> {:d}", i, ch, *byte_to_glyph.get(i).unwrap() as int); |