Auto merge of #11303 - mbrubeck:last-resort, r=pcwalton

Always include the last-resort font

This is used as a fallback for any characters that don't have glyphs in the specified font.  Without this, per-glyph font fallback doesn't work because the FontGroup always contains only one font.  Fixes missing glyphs on many pages on my Linux box.

As a follow-up, we should probably have a smarter strategy for finding fallback fonts, possibly varying by script.  (Currently we just have a few hard-coded family names.)

r? @glennw

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11303)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-05-24 10:39:44 -07:00
commit aa9f50a1d4
258 changed files with 127 additions and 905 deletions

View file

@ -9,12 +9,15 @@ body {
font-size: 24px;
line-height: 24px;
}
span {
font-family: sans-serif;
}
</style>
</head>
<body>
<section>x&larr;</section>
<section>&rarr;x</section>
<section>&rarr;x&larr;</section>
<section>x&larr;<span>&nbsp;</span></section>
<section>&rarr;x<span>&nbsp;</span></section>
<section>&rarr;x&larr;<span>&nbsp;</span></section>
</body>
</html>