Bind shipped XeLaTeX font maps to native font resources
This commit is contained in:
1 parent
dcc6a3984c
commit
af6466cd98
11 files changed
+482
-25
No files matched your search
@@ -212,6 +212,25 @@ impl Executor {
|
||||
bytes: Arc::from(bytes),
|
||||
}));
|
||||
}
|
||||
if let Some(body) = body {
|
||||
for (command, map_file) in [(b"mapfile".as_slice(), true), (b"mapline", false)] {
|
||||
if let Some(operands) = xdv_operand(body, command) {
|
||||
let from = self.source_name(special.span);
|
||||
self.reads.insert(Dependency::FontResources);
|
||||
let warnings = Arc::make_mut(&mut self.pdf_virtual_fonts)
|
||||
.update_xdv_font_map(operands, map_file, std::path::Path::new(&from), files)
|
||||
.map_err(|error| self.error(error, special.span))?;
|
||||
self.check_cancellation()?;
|
||||
for warning in warnings {
|
||||
files.observe_diagnostic(
|
||||
WriteDestination::TerminalAndLog,
|
||||
&format!("xdvipdfmx: warning: {warning}\n"),
|
||||
).map_err(|error| self.error(error, special.span))?;
|
||||
}
|
||||
return Ok(None);
|
||||
}
|
||||
}
|
||||
}
|
||||
if let Some(dictionary) = body.and_then(|body| xdv_operand(body, b"docinfo")) {
|
||||
use crate::pdf_device::xdv_document::merge_docinfo;
|
||||
let (entries, warnings) = merge_docinfo(&self.state.pdf_info, dictionary)
|
||||
|
||||
Reference in new issue
Block a user