Registry / RepositoryTypeScriptRustPython
Rollpie
ReadmeFiles
Versions
Info
Download
0.2.0579.9 KB2026-09-150.1.1576.6 KB2026-09-12
Version
0.1.1
Copyright
Rollpie, Irohabook
Publisher
math
Published
2026-09-12
Size
576.6 KB
Downloads
4
Checksum
8e0181e42f4abdc9f91c1ff48b058761bf1940be8d2d4747e5e74bd3014f4322
Dependencies
None

dump.rs

1
2
3
4
5
6
7
8
9
10
use suki::font;
use suki::{Mode, Shape};

fn main() {
    let source = std::env::args().nth(1).unwrap_or_else(|| r"\sqrt[3]{\frac{x+1}{x-1}}".to_string());
    let font = font::load(std::fs::read("font/latinmodern-math.otf").unwrap()).unwrap();
    println!("--- HTML ---\n{}", suki::render_html(&source, &font, Mode::Display).unwrap());
    let svg = suki::render_svg(&source, &font, Mode::Display, Shape::Text).unwrap();
    println!("\n--- SVG 文字 ---\n{svg}");
}