Shape and render explicit OpenType fonts in native Unicode jobs

This commit is contained in:
gloamxun committed 2026-11-21 10:35:03 +08:00
1 parent 3caf1eced2
commit 70822cbd94
33 files changed
+1255 -80

No files matched your search

+7
View File
@@ -131,6 +131,13 @@ impl SourceProvider for RecordingHost<'_> {
.map_err(Clone::clone)
})
}
fn optional_font_file(&mut self, kind: ResourceKind, name: &str, from: &str) -> Result<Option<LoadedResource>, String> {
let (name, from) = (name.to_owned(), from.to_owned());
call!(self, optional_font_file(kind, &name, &from); |result| {
result.as_ref().map(|resource| resource.as_ref().map(|item| item.version.clone()))
.map_err(Clone::clone)
})
}
fn optional_font_map(&mut self, name: &str, from: &str) -> Result<Option<LoadedResource>, String> {
let (name, from) = (name.to_owned(), from.to_owned());
call!(self, optional_font_map(&name, &from); |result| {