Further speed up font handling in the GL backend

Use the new fontdb API:

* When registering embedded fonts, we don't need to make a copy of the
  embedded font data anymore.
* We don't have to mmap the font files ourselves anymore, fontdb can
  do this now for us.
This commit is contained in:
Simon Hausmann 2021-10-04 08:53:16 +02:00 committed by Simon Hausmann
parent 2716e4b4dd
commit 0e8efea2ff
6 changed files with 48 additions and 60 deletions

View file

@ -45,7 +45,7 @@ impl sixtyfps_corelib::backend::Backend for TestingBackend {
fn register_font_from_memory(
&'static self,
_data: &[u8],
_data: &'static [u8],
) -> Result<(), Box<dyn std::error::Error>> {
Ok(())
}