patorjk / figlet.js

A FIG Driver written in JavaScript which aims to fully implement the FIGfont spec.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ogre font is missing

thilinapiy opened this issue · comments

Getting following error when I change the font to ogre.

var figlet = require('figlet');

figlet.text('hello world', {
    font: 'ogre',
    horizontalLayout: 'default',
    verticalLayout: 'default'
}, function(err, data) {
    if (err) {
        console.log('Something went wrong...');
        console.dir(err);
        return;
    }
    console.log(data);
});

Error -

{ Error: ENOENT: no such file or directory, open '/home/thilina/node_modules/figlet/lib/../fonts/ogre.flf'
    at Error (native)
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/home/thilina/node_modules/figlet/lib/../fonts/ogre.flf' }

I'm using Fedora 26 with; node v6.11.2.

font: 'ogre', --> font: 'Ogre',

Its case-sensitive.