Write PDF interword spaces with actual device fonts
This commit is contained in:
1 parent
b93d5f55da
commit
514a2d3344
24 files changed
+664
-65
No files matched your search
@@ -219,6 +219,8 @@ pub struct Executor {
|
||||
pdf_colors: crate::pdf_device::PdfColorStacks,
|
||||
pdf_link_stack: Vec<pdf_links::ActiveLink>,
|
||||
pdf_running_links: bool,
|
||||
pdf_interword_spaces: bool,
|
||||
pdf_space_font: Option<crate::pdf_device::text_spaces::SpaceFontRequest>,
|
||||
#[cfg(all(target_os = "linux", target_env = "gnu"))]
|
||||
pdf_last_match: Option<Arc<pdf_match::PdfMatch>>,
|
||||
pdf_catalog_tokens: Vec<Token>,
|
||||
@@ -384,6 +386,8 @@ impl Executor {
|
||||
pdf_colors: Default::default(),
|
||||
pdf_link_stack: Vec::new(),
|
||||
pdf_running_links: true,
|
||||
pdf_interword_spaces: false,
|
||||
pdf_space_font: None,
|
||||
#[cfg(all(target_os = "linux", target_env = "gnu"))]
|
||||
pdf_last_match: None,
|
||||
pdf_catalog_tokens: Vec::new(),
|
||||
@@ -2814,6 +2818,9 @@ impl Executor {
|
||||
OutputOperation::PdfColor { .. } => {
|
||||
return self.fail("PDF color operation requires native PDF paint");
|
||||
}
|
||||
OutputOperation::PdfTextSpace(_) => {
|
||||
return self.fail("PDF text space operation requires a positioned shipout");
|
||||
}
|
||||
OutputOperation::PdfLink(_) => {
|
||||
return self.fail("PDF link operation requires a positioned shipout");
|
||||
}
|
||||
@@ -3794,6 +3801,9 @@ impl Executor {
|
||||
Pdfstartlink | Pdfendlink | Pdfdest | Pdfrunninglinkoff | Pdfrunninglinkon => {
|
||||
self.scan_pdf_link(primitive, token.span, files)?;
|
||||
}
|
||||
Pdfinterwordspaceon | Pdfinterwordspaceoff | Pdffakespace | Pdfspacefont => {
|
||||
self.scan_pdf_space(primitive, token.span, files)?;
|
||||
}
|
||||
Pdfsetrandomseed => {
|
||||
let seed = self.integer(files)?;
|
||||
self.reads.insert(Dependency::PdfRandomState);
|
||||
|
||||
Reference in new issue
Block a user