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
@@ -162,6 +162,16 @@ impl PdfProjection {
|
||||
}
|
||||
return None;
|
||||
}
|
||||
DisplayItem::PdfTextSpace { operation, .. } => {
|
||||
if *operation == crate::pdf_device::text_spaces::SpaceOperation::Explicit
|
||||
&& self.units == DisplayUnits::TeX && !self.text_active
|
||||
{
|
||||
self.move_origin([0, 0]);
|
||||
self.text_active = true;
|
||||
self.modified_text_position = false;
|
||||
}
|
||||
return None;
|
||||
}
|
||||
DisplayItem::NativeGlyph { .. } if self.units == DisplayUnits::TeX => {
|
||||
if !self.text_active {
|
||||
self.move_origin([0, 0]);
|
||||
|
||||
Reference in new issue
Block a user