Skip to content

Commit

Permalink
Add first example of text rendering in PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Nov 6, 2024
1 parent e5be879 commit d5ae1bb
Show file tree
Hide file tree
Showing 12 changed files with 1,924 additions and 159 deletions.
Binary file modified .DS_Store
Binary file not shown.
125 changes: 18 additions & 107 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 13 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,20 @@ pdf-writer = { version = "0.9" }
image = { version = "0.25", default-features = false}
svg2pdf = { version = "0.10" }
# dependencies for wasm demo
azul-css = { git = "https://github.com/fschutt/azul", rev = "e61bad8ca597cc51f1783a1887c45c2972e649e2", default-features = false }
azul-css-parser = { git = "https://github.com/fschutt/azul", rev = "e61bad8ca597cc51f1783a1887c45c2972e649e2", default-features = false }
azul-core = { git = "https://github.com/fschutt/azul", rev = "e61bad8ca597cc51f1783a1887c45c2972e649e2", default-features = false, features = ["std"] }
azul-layout = { git = "https://github.com/fschutt/azul", rev = "e61bad8ca597cc51f1783a1887c45c2972e649e2", default-features = false, features = ["std", "text_layout"] }
azul-text-layout = { git = "https://github.com/fschutt/azul", rev = "e61bad8ca597cc51f1783a1887c45c2972e649e2", default-features = false }
azulc = { git = "https://github.com/fschutt/azul", rev = "e61bad8ca597cc51f1783a1887c45c2972e649e2", default-features = false, features = ["std", "xml", "text_layout", "font_loading"] }
rust-fontconfig = { version = "0.1.12", default-features = false }
azul-css = { git = "https://github.com/fschutt/azul", rev = "646b5e3030041aaebe06d2344a36bbed000c8674", default-features = false }
azul-css-parser = { git = "https://github.com/fschutt/azul", rev = "646b5e3030041aaebe06d2344a36bbed000c8674", default-features = false }
azul-core = { git = "https://github.com/fschutt/azul", rev = "646b5e3030041aaebe06d2344a36bbed000c8674", default-features = false, features = ["std"] }
azul-layout = { git = "https://github.com/fschutt/azul", rev = "646b5e3030041aaebe06d2344a36bbed000c8674", default-features = false, features = ["std", "text_layout"] }
azul-text-layout = { git = "https://github.com/fschutt/azul", rev = "646b5e3030041aaebe06d2344a36bbed000c8674", default-features = false }
azulc = { git = "https://github.com/fschutt/azul", rev = "646b5e3030041aaebe06d2344a36bbed000c8674", default-features = false, features = ["std", "xml", "text_layout", "font_loading"] }
rust-fontconfig = { version = "0.1.13", default-features = false }
xmlparser = { version = "0.13.6", default-features = false }
serde = { version = "1" }
serde_derive = { version = "1" }
serde_json = { version = "1" }
wasm-bindgen = { version = "0.2" }
base64 = "0.22.1"
flate2 = "1.0.23"

[features]
default = ["js-sys"]
Expand Down Expand Up @@ -70,3 +71,8 @@ required-features = []
[[example]]
name = "html"
required-features = []

# re-generates the /defaultfonts/*.ttf fonts
[[example]]
name = "subset"
required-features = []
Loading

0 comments on commit d5ae1bb

Please sign in to comment.