Reload letterspaced font metrics independently of generated packets
This commit is contained in:
1 parent
65204a7dae
commit
aa780a800b
6 files changed
+154
-3
No files matched your search
@@ -114,6 +114,14 @@ pub(crate) fn unexpanded(amount: &i32) -> bool {
|
||||
}
|
||||
|
||||
impl NativeFont {
|
||||
pub(crate) fn discard_letterspace_program(font: &mut Arc<Self>) -> bool {
|
||||
if font.letter_spacing.is_none() {
|
||||
return false;
|
||||
}
|
||||
Arc::make_mut(font).letter_spacing = None;
|
||||
true
|
||||
}
|
||||
|
||||
pub(crate) fn rebind_resource_path(
|
||||
font: &mut Arc<Self>,
|
||||
bindings: &BTreeMap<std::path::PathBuf, std::path::PathBuf>,
|
||||
|
||||
Reference in new issue
Block a user