diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2015-07-27 14:18:50 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2015-07-31 08:42:30 -0700 |
commit | e9ec9289d6a13ee6cea7d430acbcf15e81db7af8 (patch) | |
tree | 884ceb2d536699474327eb18c0fff21dbcbd8be8 /components/gfx/platform/macos/font.rs | |
parent | 1ff7a51f0a3467546436813d996ab54a7ec528a9 (diff) | |
download | servo-e9ec9289d6a13ee6cea7d430acbcf15e81db7af8.tar.gz servo-e9ec9289d6a13ee6cea7d430acbcf15e81db7af8.zip |
gfx: Instantiate the `CTFont` corresponding to a Mac font on demand.
This avoids panics in multiprocess mode.
Diffstat (limited to 'components/gfx/platform/macos/font.rs')
-rw-r--r-- | components/gfx/platform/macos/font.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/gfx/platform/macos/font.rs b/components/gfx/platform/macos/font.rs index a6e431407e1..b8474aa6da9 100644 --- a/components/gfx/platform/macos/font.rs +++ b/components/gfx/platform/macos/font.rs @@ -64,7 +64,7 @@ impl FontHandleMethods for FontHandle { Some(s) => s.to_f64_px(), None => 0.0 }; - match *template.ctfont { + match template.ctfont() { Some(ref ctfont) => { Ok(FontHandle { font_data: template.clone(), |