2 stable releases

2.0.0 Oct 2, 2024
1.0.0 Sep 26, 2024

#642 in Text processing

Download history 144/week @ 2024-09-23 206/week @ 2024-09-30 13/week @ 2024-10-07

363 downloads per month

MIT license

20KB
385 lines

Crates.io Version Codegeberg

          ____  _   _ _     _____ _____         
  _____  |  _ \| | | | |   | ____|_   _|  _____
 |_____| | |_) | | | | |   |  _|   | |   |_____|
 |_____| |  _ <| |_| | |___| |___  | |   |_____|
         |_| \_\\___/|_____|_____| |_|          
                                                

RUsty LETters

A rust crate for drawing FIGlets.

Features

  • Horizontal fitting (Kerning) and smushing:

    I followed this document as for how the different smushing rules work. Not all of them are implemented quite yet:

    • Kerning (removing spaces between characters)
    • Universal Smushing (the first sub-characters of a character overlap the last sub-characters of the previous)
    • Equal Character smushing
    • Underscore smushing
    • Hierarchy smushing
    • Opposite pair smushing
    • Big X smushing
    • Hardblank smushing
  • Different fonts:

    The figfont crate is used for loading and parsing fonts. Seems to support everything just fine. No additional fonts are included, you can get some here, or wherever else on the internet.

  • Max output width:

    Wraps words if a line is too long. Won't break up words, though.

Not features (yet?)

  • Vertical smushing. I plan to add it at some point
  • Maximum output height. I plan to add this too
  • Control files. I don't see the point of them, but feel free to ask if you need them.

Dependencies

~7MB
~111K SLoC