Skip to content

Commit

Permalink
Patch for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
june0cho authored and ksh8281 committed Dec 7, 2013
1 parent 1b8f9c0 commit ab1291f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/gfx/platform/macos/font_list.rs
Expand Up @@ -36,13 +36,13 @@ impl FontListHandle {
let family_name = family_name_cf.to_str();
debug!("Creating new FontFamily for family: {:s}", family_name);

let new_family = @mut FontFamily::new(family_name);
let new_family = FontFamily::new(family_name);
family_map.insert(family_name, new_family);
}
family_map
}

pub fn load_variations_for_family(&self, family: @mut FontFamily) {
pub fn load_variations_for_family(&self, family: &mut FontFamily) {
debug!("Looking for faces of family: {:s}", family.family_name);

let family_collection = core_text::font_collection::create_for_family(family.family_name);
Expand All @@ -54,7 +54,7 @@ impl FontListHandle {
let handle = FontHandle::new_from_CTFont(&self.fctx, font).unwrap();

debug!("Creating new FontEntry for face: {:s}", handle.face_name());
let entry = @FontEntry::new(handle);
let entry = FontEntry::new(handle);
family.entries.push(entry)
}
}
Expand Down

0 comments on commit ab1291f

Please sign in to comment.