Embed all route-D text faces with CID widths
This commit is contained in:
1 parent
5010e9ab10
commit
641fc1c14b
4 files changed
+145
-84
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user