| Crates.io | wagyan |
| lib.rs | wagyan |
| version | 0.1.2 |
| created_at | 2025-12-23 02:19:21.319309+00 |
| updated_at | 2025-12-24 12:28:18.557716+00 |
| description | CLI tool to convert text into extruded ASCII STL meshes (TTF/OTF supported) |
| homepage | |
| repository | https://github.com/dlwr/wagyan |
| max_upload_size | |
| id | 2000629 |
| size | 4,576,690 |
Pronunciation: ワギャン (IPA:[waɡʲaɴ])
brew install dlwr/wagyan/wagyan
cargo install wagyan
# Default embedded font (Noto Sans JP Regular), write to stdout
wagyan --size 72 --depth 10 "HELLO" | pbcopy
# Japanese + newline with external font
wagyan --font "/System/Library/Fonts/ヒラギノ角ゴシック W4.ttc" --size 72 --depth 5 "こんにちは\n世界"
Options:
--font <path>: TTF/OTF font. Defaults to embedded Noto Sans JP Regular.--face-index <n>: Face index for font collections (.ttc). Default 0.--size <px>: Font size. Default 72.--tolerance <value>: Tessellation tolerance (smaller = finer). Defaults to size-proportional value (clamped between 0.0005 and 0.2).--depth <value>: Extrusion depth (centered ±depth/2). Default 10.--spacing <value>: Extra spacing between glyphs.--kerning / --no-kerning: Toggle kerning (default on when font provides pairs).--plate <value>: Back plate thickness (0 disables). Default 0.--plate-margin <value>: Margin to expand the plate. Default 2.--orient <flat|front>: Text plane (front faces the viewer on XZ; flat is XY).--no-escape: Keep literal \\n (no newline conversion). Default converts \\n to newline.--no-center: Disable auto-centering to origin.--output <path>: Write to a file; otherwise stdout.\n), rendered top to bottom.--size to keep detail level consistent across sizes.--no-kerning).assets/fonts/OFL.txt.LICENSE).