Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small slant.flf does not work in Ubuntu #77

Open
toddwprice opened this issue Aug 4, 2021 · 1 comment
Open

small slant.flf does not work in Ubuntu #77

toddwprice opened this issue Aug 4, 2021 · 1 comment

Comments

@toddwprice
Copy link

Running this on Ubuntu:

const figlet = require('figlet');

console.log(
  chalk.keyword('orange')(
    figlet.textSync('scooter-cli', {font: 'small slant', horizontalLayout: 'full', verticalLayout: 'controlled smushing'})
  ) + 'v' + chalk.white.bold(pkg.version) + '\n\n\n'
);

...results in the following error:

Error: ENOENT: no such file or directory, open '/home/ubuntu/dev/scooter/cli/node_modules/figlet/fonts/small slant.flf'

Not critical but thought I would report it.

@patorjk
Copy link
Owner

patorjk commented Aug 4, 2021

It may be a capitalization issue. Try:

const figlet = require('figlet');

console.log(
  chalk.keyword('orange')(
    figlet.textSync('scooter-cli', {font: 'Small Slant', horizontalLayout: 'full', verticalLayout: 'controlled smushing'})
  ) + 'v' + chalk.white.bold(pkg.version) + '\n\n\n'
);

Some OSes seem to not care about capitalization, which could lead to bugs. I'll need to think about how to best fix this type of situation. Thank you for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants