Embed all route-D text faces with CID widths

This commit is contained in:
gloamxun committed 2026-10-20 20:59:01 +08:00
1 parent 5010e9ab10
commit 641fc1c14b
4 files changed
+145 -84

No files matched your search

+15 -1
View File
@@ -2,7 +2,7 @@
//!
//! Run with `cargo run -p texrra-tex-core --example pdf_display > /tmp/route-d.pdf`.
use texrra_tex_core::render::{DisplayItem, DisplayList, PdfImage};
use texrra_tex_core::render::{DisplayItem, DisplayList, FontFace, PdfImage};
fn main() {
let mut list = DisplayList {
@@ -11,6 +11,20 @@ fn main() {
items: Vec::new(),
images: Vec::new(),
};
list.push(DisplayItem::Text {
x: 100 * 65_536,
y: 140 * 65_536,
size: 12 * 65_536,
text: "bold face".to_owned(),
font: FontFace::Bold,
});
list.push(DisplayItem::Text {
x: 220 * 65_536,
y: 140 * 65_536,
size: 12 * 65_536,
text: "italic face".to_owned(),
font: FontFace::Italic,
});
list.push(DisplayItem::Text {
x: 72 * 65_536,
y: 100 * 65_536,