olizilla / grunt-asciify

figlet-js based grunt task turns plain-text into Awesome Text
MIT License
20 stars 1 forks source link

Link to fonts demo page #2

Closed mhulse closed 11 years ago

mhulse commented 11 years ago

Love this task, so thanks!

Might be useful to folks to have a link to your fonts demo page in the README.

I had forked your code tonight and I was in the process of writing some Grunt code with the goal to generate a markdown file with all the font examples:

// ... snip ...
asciify: {

    // https://oncletom.io/2013/dynamic-grunt-targets-using-templates/
    // Run: grunt all (or) asciify:all:block (where block = font name).
    all: {
        text: '<%= grunt.task.current.args[0] %>',
        options: {
            font: '<%= grunt.task.current.args[0] %>',
            log: true,
        },
    }

},
// ... snip ...
// This could be written better, but I found demo page before I could figure out how to make the below less verbose and write it more dynamically:
grunt.registerTask('all', [
    'asciify:all:3-d',
    'asciify:all:3x5',
    'asciify:all:5lineoblique',
    'asciify:all:acrobatic',
    'asciify:all:alligator',
    'asciify:all:alligator2',
    'asciify:all:alphabet',
    'asciify:all:avatar',
    'asciify:all:banner',
    'asciify:all:banner3-D',
    'asciify:all:banner3',
    'asciify:all:banner4',
    'asciify:all:barbwire',
    'asciify:all:basic',
    'asciify:all:bell',
    'asciify:all:big',
    'asciify:all:bigchief',
    'asciify:all:binary',
    'asciify:all:block',
    'asciify:all:bubble',
    'asciify:all:bulbhead',
    'asciify:all:calgphy2',
    'asciify:all:caligraphy',
    'asciify:all:catwalk',
    'asciify:all:chunky',
    'asciify:all:coinstak',
    'asciify:all:colossal',
    'asciify:all:computer',
    'asciify:all:contessa',
    'asciify:all:contrast',
    'asciify:all:cosmic',
    'asciify:all:cosmike',
    'asciify:all:cricket',
    'asciify:all:cursive',
    'asciify:all:cyberlarge',
    'asciify:all:cybermedium',
    'asciify:all:cybersmall',
    'asciify:all:diamond',
    'asciify:all:digital',
    'asciify:all:doh',
    'asciify:all:doom',
    'asciify:all:dotmatrix',
    'asciify:all:drpepper',
    'asciify:all:eftichess',
    'asciify:all:eftifont',
    'asciify:all:eftipiti',
    'asciify:all:eftirobot',
    'asciify:all:eftitalic',
    'asciify:all:eftiwall',
    'asciify:all:eftiwater',
    'asciify:all:epic',
    'asciify:all:fender',
    'asciify:all:fourtops',
    'asciify:all:fuzzy',
    'asciify:all:goofy',
    'asciify:all:gothic',
    'asciify:all:graffiti',
    'asciify:all:hollywood',
    'asciify:all:invita',
    'asciify:all:isometric1',
    'asciify:all:isometric2',
    'asciify:all:isometric3',
    'asciify:all:isometric4',
    'asciify:all:italic',
    'asciify:all:ivrit',
    'asciify:all:jazmine',
    'asciify:all:jerusalem',
    'asciify:all:katakana',
    'asciify:all:kban',
    'asciify:all:larry3d',
    'asciify:all:lcd',
    'asciify:all:lean',
    'asciify:all:letters',
    'asciify:all:linux',
    'asciify:all:lockergnome',
    'asciify:all:madrid',
    'asciify:all:marquee',
    'asciify:all:maxfour',
    'asciify:all:mike',
    'asciify:all:mini',
    'asciify:all:mirror',
    'asciify:all:mnemonic',
    'asciify:all:morse',
    'asciify:all:moscow',
    'asciify:all:nancyj-fancy',
    'asciify:all:nancyj-underlined',
    'asciify:all:nancyj',
    'asciify:all:nipples',
    'asciify:all:ntgreek',
    'asciify:all:o8',
    'asciify:all:ogre',
    'asciify:all:pawp',
    'asciify:all:peaks',
    'asciify:all:pebbles',
    'asciify:all:pepper',
    'asciify:all:poison',
    'asciify:all:puffy',
    'asciify:all:pyramid',
    'asciify:all:relief',
    'asciify:all:relief2',
    'asciify:all:rev',
    'asciify:all:roman',
    'asciify:all:rot13',
    'asciify:all:rounded',
    'asciify:all:rowancap',
    'asciify:all:rozzo',
    'asciify:all:runic',
    'asciify:all:runyc',
    'asciify:all:sblood',
    'asciify:all:script',
    'asciify:all:serifcap',
    'asciify:all:shadow',
    'asciify:all:short',
    'asciify:all:slant',
    'asciify:all:slide',
    'asciify:all:slscript',
    'asciify:all:small',
    'asciify:all:smisome1',
    'asciify:all:smkeyboard',
    'asciify:all:smscript',
    'asciify:all:smshadow',
    'asciify:all:smslant',
    'asciify:all:smtengwar',
    'asciify:all:speed',
    'asciify:all:stampatello',
    'asciify:all:standard',
    'asciify:all:starwars',
    'asciify:all:stellar',
    'asciify:all:stop',
    'asciify:all:straight',
    'asciify:all:tanja',
    'asciify:all:tengwar',
    'asciify:all:term',
    'asciify:all:thick',
    'asciify:all:thin',
    'asciify:all:threepoint',
    'asciify:all:ticks',
    'asciify:all:ticksslant',
    'asciify:all:tinker-toy',
    'asciify:all:tombstone',
    'asciify:all:trek',
    'asciify:all:tsalagi',
    'asciify:all:twopoint',
    'asciify:all:univers',
    'asciify:all:usaflag',
    'asciify:all:wavy',
    'asciify:all:weird',
]);

I thought I was being cool, and then I found your demo page (i.e., there was no need for me to have grunt do that work).

Anyway, just thought I'd mention this in the hopes that it would save other noobs, like me, from being overly geeky and trying to do a superflous pull request. :laughing:

Thanks again for this bad ass Grunt task!

alanshaw commented 11 years ago

If you install the asciify module you can view your own text in all the available fonts:

npm install asciify -g
asciify -a "All The Fonts!"
mhulse commented 11 years ago

Ah, that's cool! Thanks for tip. :)

Lovin' this task. Thanks!

alanshaw commented 11 years ago

Link to examples page and info about asciify -a added: https://github.com/olizilla/grunt-asciify#optionsfont

Thanks for the suggestion

mhulse commented 11 years ago

The name of the figlet font to use. View the font list and examples. Use the asciify module to show all fonts for your text: asciify -a "All The Fonts!".

Perfecto! Thanks for the quick implementation! Keep up the excellent work too! :octocat: