snapshot_fonts 1.2.0

High-resolution terminal bar charts using custom PUA fonts (251 levels per half-character)
Documentation

[!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.

snapshot_fonts

Minimum Supported Rust Version Lines Of Code

Monospace fonts for terminal-based data visualization. Encode chart data directly in Unicode text.

  • FillLevels: 251×251 fill level combinations for sparklines/histograms
  • Candles: 52k candlestick glyphs for financial charts
cargo install snapshot_fonts
snapshot_fonts generate -o ~/.local/share/fonts/
fc-cache -fv

Usage

use snapshot_fonts::{SnapshotFillLevels, SnapshotCandles};

// Price sparkline
let chart = SnapshotFillLevels::from_prices(&prices).draw();

// Candlestick chart
let chart = SnapshotCandles::from_prices(&prices).draw();

Unicode Ranges

FillLevels

  • Start: U+F09E5
  • End: U+FFFFD
  • Count: 63,001 (251 × 251)
  • Plane: 15 (PUA-A)

Candles

  • Start: U+100000
  • End: U+10CCD5
  • Count: 52,438
  • Plane: 16 (PUA-B)

License