| Crates.io | snapshot_fonts |
| lib.rs | snapshot_fonts |
| version | 1.2.0 |
| created_at | 2025-12-14 15:39:38.308265+00 |
| updated_at | 2025-12-17 19:06:17.722753+00 |
| description | High-resolution terminal bar charts using custom PUA fonts (251 levels per half-character) |
| homepage | |
| repository | https://github.com/valeratrades/snapshot_fonts |
| max_upload_size | |
| id | 1984636 |
| size | 194,257 |
[!WARNING] Uses Unicode Private Use Areas: \
- FillLevels: PUA-A (Plane 15) U+F0000U+FFFFD \
- Candles: PUA-B (Plane 16) U+100000U+10FFFD
These ranges may conflict with other custom fonts using PUA.
Monospace fonts for terminal-based data visualization. Encode chart data directly in Unicode text.
cargo install snapshot_fonts
snapshot_fonts generate -o ~/.local/share/fonts/
fc-cache -fv
use snapshot_fonts::{SnapshotFillLevels, SnapshotCandles};
// Price sparkline
let chart = SnapshotFillLevels::from_prices(&prices).draw();
// Candlestick chart
let chart = SnapshotCandles::from_prices(&prices).draw();
Start: U+100000
End: U+10CCD5
Count: 52,438
Plane: 16 (PUA-B)