mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-31 15:47:26 +00:00
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:
parent
2716e4b4dd
commit
0e8efea2ff
6 changed files with 48 additions and 60 deletions
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue