tfachmann / typst-as-library Goto Github PK
View Code? Open in Web Editor NEWSimple demo that demonstrates how to use typst as a library in Rust
License: Apache License 2.0
Simple demo that demonstrates how to use typst as a library in Rust
License: Apache License 2.0
This is very cool, thank you!
Is there a way to either embed the fonts or to use the system fonts?
For package download and storage, this wrapper currently uses ureq
which is NOT wasm compatible (algesten/ureq#667).
Find a way to make it work for both native and wasm32, so we have a minimal example how to use typst as a library in the web
Hi, thanks for writing this wrapper.
It is much more conventient to use than having to write and maintain the typst world boilerplate code myself.
Are you planning to publish this to crates-io, possibly syncing releases with typst? This way it can be ensured that the sources will always be available. :)
Thank you for the nice demonstration of using typst as a library! I've learnt a lot while reading the repo.
My only advice is that it's better not to treat main.rs as a binary because AFAIK binary will get published. One can turn it into an example or a test case instead.
The crate currently panics here when no fonts
dir is found.
I think it should search the system font paths as well, and maybe if nothing is found error out with a more descriptive message?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.