Skip to content

Commit 4925943

Browse files
authored
Merge pull request #33 from VincentTam/cjk
Add CJK & Emoji support
2 parents 0ee3aff + 087d07b commit 4925943

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

Cargo.lock

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/worker/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ time = "0.3"
1616
ttf-parser = "0.24"
1717
typst = "0.13"
1818
typst-assets = { version = "0.13", features = ["fonts"] }
19+
typst-dev-assets = { git = "https://github.com/typst/typst-dev-assets.git", rev = "995986da" }
1920
typst-render = "0.13"
2021

2122
# downloading packages

crates/worker/src/sandbox.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ pub struct Sandbox {
4444

4545
fn fonts() -> Vec<Font> {
4646
typst_assets::fonts()
47+
.chain(typst_dev_assets::fonts())
4748
.flat_map(|bytes| {
4849
let buffer = Bytes::new(bytes);
4950
let face_count = ttf_parser::fonts_in_collection(&buffer).unwrap_or(1);

0 commit comments

Comments
 (0)