From d4e37f0c825796f618ccfc4186937b57bd820a8a Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 9 Aug 2012 16:45:17 -0700 Subject: [PATCH] Make QuartzNativeFont return placeholder values instead of failing --- src/servo/text/native_font/quartz_native_font.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/servo/text/native_font/quartz_native_font.rs b/src/servo/text/native_font/quartz_native_font.rs index 12a229a18d1..a101e089d19 100644 --- a/src/servo/text/native_font/quartz_native_font.rs +++ b/src/servo/text/native_font/quartz_native_font.rs @@ -39,12 +39,14 @@ class QuartzNativeFont/& { } fn glyph_index(_codepoint: char) -> option { - fail; + // FIXME + some(40u) } // FIXME: What unit is this returning? Let's have a custom type fn glyph_h_advance(_glyph: GlyphIndex) -> option { - fail; + // FIXME + some(15) } }