mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Handle when glyphs don't exist on mac
This commit is contained in:
parent
2f6868bbbe
commit
19e1e39acc
1 changed files with 4 additions and 1 deletions
|
@ -86,7 +86,10 @@ struct QuartzNativeFont/& {
|
|||
}
|
||||
};
|
||||
|
||||
assert result != false; // FIXME: error handling
|
||||
if !result {
|
||||
// No glyph for this character
|
||||
return None;
|
||||
}
|
||||
|
||||
CFRelease(ctfont);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue