Giter Club home page Giter Club logo

rs-figlet's People

Contributors

noituri avatar wildhoney avatar yuanbohan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rs-figlet's Issues

Is there a way to remove spaces between characters?

The figlet command leaves very little space between letters, like this:

   __            __
  / /____  _____/ /_
 / __/ _ \/ ___/ __/
/ /_/  __(__  ) /_
\__/\___/____/\__/

This library, however, leaves a lot of space between characters:

  ______                 __
 /_  __/  ___    _____  / /_
  / /    / _ \  / ___/ / __/
 / /    /  __/ (__  ) / /_
/_/     \___/ /____/  \__/

It looks like the leftmost character of one letter can only come after the rightmost letter of the one before it.

Error when using custom font

When I try to use univers I get:

thread 'main' panicked at 'called Result::unwrap()on anErrvalue: "one line len can't be less than 2. it is:@"', src/renderer/mod.rs:23:66 note: run withRUST_BACKTRACE=1 environment variable to display a backtrace

(small from the example in the repo works just fine)

Does not display the banner

Hi @yuanbohan,

I'm using this lib in my program as below. But it does not display the banner when I run the program.
How do we display the banner?

use figlet_rs::FIGfont;

fn main() {
    let small_font = FIGfont::from_file("resources/small.flf").unwrap();
    let figure = small_font.convert("HELLO");
    assert!(figure.is_some());
}

Thanks,
Unmesh

Fonts packaging

Using this as an external crate panics on FIGfont::standard() because font file is not available at given relative path "resources/standard.flf". Consider packaging font(-s) via include_str! macro or by any other suitable means.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.