Register virtual fonts in native PDF shipout order

This commit is contained in:
gloamxun committed 2026-11-21 09:18:03 +08:00
1 parent b008c0693a
commit 614f09aa9b
11 files changed
+708 -139

No files matched your search

+5
View File
@@ -243,6 +243,10 @@ pub struct DisplayList {
pub width: i64,
pub height: i64,
pub items: Vec<DisplayItem>,
/// Captured VF packets from native shipout, indexed by the raw display
/// item. None leaves lookup to a standalone renderer.
#[doc(hidden)]
pub prepared_virtual_glyphs: Option<std::collections::BTreeMap<usize, std::sync::Arc<Vec<crate::math_engine_tex::PositionedItem>>>>,
/// Paint-order indices into `items`; absent entries have unknown origin.
pub sources: std::collections::BTreeMap<usize, crate::provenance::PaintSource>,
pub images: Vec<PdfImage>,
@@ -262,6 +266,7 @@ impl Default for DisplayList {
width: 0,
height: 0,
items: Vec::new(),
prepared_virtual_glyphs: None,
sources: Default::default(),
images: Vec::new(),
magnification: 1000,