Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Derive Clone for FontContext (linebender#161)
This is useful because cloning a `FontContext` is currently the only way to get a second `FontContext` without reloading system fonts (which is quite expensive). Using this approach to avoid reloading system fonts in Blitz's WPT test runner which has a Blitz `Document` (and thus a `FontContext`) per test brings our total runtime down by about 40%. It is possible to work around this by manually cloning the `FontContext` (it's two public fields impl `Clone`). We will probably want a better solution for reusing loaded system fonts at some point.
- Loading branch information