Make QuartzNativeFont return placeholder values instead of failing

This commit is contained in:
Brian Anderson 2012-08-09 16:45:17 -07:00
parent 0b7d020174
commit d4e37f0c82

View file

@ -39,12 +39,14 @@ class QuartzNativeFont/& {
}
fn glyph_index(_codepoint: char) -> option<GlyphIndex> {
fail;
// FIXME
some(40u)
}
// FIXME: What unit is this returning? Let's have a custom type
fn glyph_h_advance(_glyph: GlyphIndex) -> option<int> {
fail;
// FIXME
some(15)
}
}