Repository navigation
mathra 1.10.1
·
249 commits
to main
since this release
The fonts of the mathfonts catalog, by name.
What changed
- mathfonts is a catalog of 30 OpenType math fonts that are free to share, each one checked with mathra. JavaScript gets
catalogFonts()andloadFontFromCatalog(slug), and Python getscatalog_fonts()andload_font_from_catalog(slug), which keeps the file in~/.cache/mathra. A font is downloaded only when asked for, once, and refused if it does not match the catalog's sha256, so the same name always gives the same SVG (#109). - The playground lists the catalog's fonts in its font picker and downloads one only when it is picked.
- The Rust crate and the terminal download nothing;
--fontin the help points to the catalog. Loading a font from a file is unchanged, and so is what mathra draws.
Equations, drawn live on the project's evolution: e^{i\pi} + 1 = 0
Pull requests
Features
- feat: load the fonts of the mathfonts catalog by name by @matheusmota-dev-br in #109
Install
| Package | Command | |
|---|---|---|
| Rust | mathra |
cargo add mathra@1.10.1 |
| CLI | mathra-cli |
cargo install mathra-cli@1.10.1 |
| npm | @mathlabs/mathra |
npm install @mathlabs/mathra@1.10.1 |
| Python | mathra |
pip install mathra==1.10.1 |
Full changelog: v1.10.0...v1.10.1