Shape and render explicit OpenType fonts in native Unicode jobs
This commit is contained in:
1 parent
3caf1eced2
commit
70822cbd94
33 files changed
+1255
-80
No files matched your search
@@ -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| {
|
||||
|
||||
Reference in new issue
Block a user