gpui: Pin to font-kit with improved OTC parsing performance. (#4047)

Details are in https://github.com/zed-industries/font-kit/pull/1; We're
not doing anything too fancy, really. Still, you should mostly see font
loading times drop significantly for font collections
Release Notes:
- Improved loading performance of large font collections (e.g. Iosevka).
Fixes https://github.com/zed-industries/community/issues/1745,
https://github.com/zed-industries/community/issues/246


https://github.com/zed-industries/zed/assets/24362066/f70edbad-ded6-4c12-9c6d-7a487f330a1b
This commit is contained in:
Piotr Osiewicz 2024-01-15 15:46:18 +01:00 committed by GitHub
parent f061015609
commit e52a2298cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -378,7 +378,7 @@ fn toggle_open_type_feature(
new_descriptor.as_concrete_TypeRef(),
);
let new_font = CTFont::wrap_under_create_rule(new_font);
*font = Font::from_native_font(new_font);
*font = Font::from_native_font(&new_font);
}
}
}