mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Make QuartzNativeFont return placeholder values instead of failing
This commit is contained in:
parent
0b7d020174
commit
d4e37f0c82
1 changed files with 4 additions and 2 deletions
|
@ -39,12 +39,14 @@ class QuartzNativeFont/& {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn glyph_index(_codepoint: char) -> option<GlyphIndex> {
|
fn glyph_index(_codepoint: char) -> option<GlyphIndex> {
|
||||||
fail;
|
// FIXME
|
||||||
|
some(40u)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: What unit is this returning? Let's have a custom type
|
// FIXME: What unit is this returning? Let's have a custom type
|
||||||
fn glyph_h_advance(_glyph: GlyphIndex) -> option<int> {
|
fn glyph_h_advance(_glyph: GlyphIndex) -> option<int> {
|
||||||
fail;
|
// FIXME
|
||||||
|
some(15)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue