Resolve imported PDF CFF device fonts from real OpenType faces
This commit is contained in:
1 parent
84d6f3ae51
commit
82e54894c4
14 files changed
+326
-38
No files matched your search
@@ -324,6 +324,16 @@ impl NativeFontCache {
|
||||
truetype::device_program(files, name, from)
|
||||
}
|
||||
|
||||
/// Resolve the actual CFF table for a PDF device font.
|
||||
pub fn pdf_device_cff(
|
||||
files: &mut impl crate::execution::SourceProvider,
|
||||
name: &str,
|
||||
from: &str,
|
||||
cid_keyed: bool,
|
||||
) -> Result<Option<Arc<[u8]>>, String> {
|
||||
cff::device_program(files, name, from, cid_keyed)
|
||||
}
|
||||
|
||||
// The caller reads the actual resource and verifies its bytes on this
|
||||
// revision before asking for the decoded representation.
|
||||
fn type1(&self, resource: &LoadedResource, transform: Type1Transform) -> Result<Arc<DecodedType1>, String> {
|
||||
|
||||
Reference in new issue
Block a user