figlet-js icon indicating copy to clipboard operation
figlet-js copied to clipboard

Spaces between letters

Open jcubic opened this issue 13 years ago • 3 comments

The kerning is different then linux figlet

original figlet:

 _          _ _       
| |__   ___| | | ___  
| '_ \ / _ \ | |/ _ \ 
| | | |  __/ | | (_) |
|_| |_|\___|_|_|\___/ 

figlet-js:

  _              _   _         
 | |__     ___  | | | |   ___  
 | '_ \   / _ \ | | | |  / _ \ 
 | | | | |  __/ | | | | | (_) |
 |_| |_|  \___| |_| |_|  \___/ 

one exra space plus original figlet merge two letters.

original figlet produce the same output if called with:

figlet h e l l o

jcubic avatar Sep 20 '12 18:09 jcubic

There's kerning information in the font files, but I haven't implemented the logic for that yet. If you can find a page defining how to parse that info, that would help :-)

scottgonzalez avatar Sep 20 '12 18:09 scottgonzalez

I could check the source for original figlet when I find some free time

jcubic avatar Sep 20 '12 18:09 jcubic

Figlet have 3 options 1 space between letters, default font kerning and smush where two letters are overlaping.

jcubic avatar Sep 20 '12 23:09 jcubic