Include PDF graphics in the native XeTeX device
This commit is contained in:
1 parent
facecbf790
commit
794c2f9b2c
19 files changed
+545
-37
No files matched your search
@@ -730,16 +730,19 @@ impl DisplayList {
|
||||
use crate::pdf_device::PdfGraphics;
|
||||
match operation {
|
||||
PdfGraphics::Literal { .. } => unreachable!("PDF literal requires PDF rendering"),
|
||||
PdfGraphics::Save => {
|
||||
graphics.push((
|
||||
open_transforms,
|
||||
fill,
|
||||
rule_fill,
|
||||
stroke,
|
||||
transparency.clone(),
|
||||
));
|
||||
}
|
||||
PdfGraphics::Matrix(matrix) => {
|
||||
PdfGraphics::Save | PdfGraphics::Matrix(_) | PdfGraphics::SaveMatrix(_) => {
|
||||
if matches!(operation, PdfGraphics::Save | PdfGraphics::SaveMatrix(_)) {
|
||||
graphics.push((
|
||||
open_transforms,
|
||||
fill,
|
||||
rule_fill,
|
||||
stroke,
|
||||
transparency.clone(),
|
||||
));
|
||||
}
|
||||
let (PdfGraphics::Matrix(matrix) | PdfGraphics::SaveMatrix(matrix)) = operation else {
|
||||
continue;
|
||||
};
|
||||
let [a, b, c, d, e, f] = matrix
|
||||
.about(*x as f64 / 65_536.0, *y as f64 / 65_536.0, true)
|
||||
.0;
|
||||
|
||||
Reference in new issue
Block a user