mirror of
https://github.com/typst/typst
synced 2025-05-13 12:36:23 +08:00
Parse format 12 cmap 🔨
This commit is contained in:
parent
6e9671f149
commit
6b8da16be8
14
src/doc.rs
14
src/doc.rs
@ -192,4 +192,18 @@ mod generator_tests {
|
|||||||
font: "NotoSans-Regular".to_owned(),
|
font: "NotoSans-Regular".to_owned(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn generate_emoji() {
|
||||||
|
use crate::write::WritePdf;
|
||||||
|
let doc = Document {
|
||||||
|
pages: vec![Page {
|
||||||
|
size: [Size::from_mm(210.0), Size::from_mm(297.0)],
|
||||||
|
contents: vec![Text("🌍".to_owned())]
|
||||||
|
}],
|
||||||
|
font: "NotoEmoji-Regular".to_owned(),
|
||||||
|
};
|
||||||
|
let mut file = std::fs::File::create("../target/typeset-doc-emoji.pdf").unwrap();
|
||||||
|
file.write_pdf(&doc).unwrap();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user