scottgonzalez/figlet-js

Non english letters are not rendered right

jcubic opened this issue · 1 comments

It seems that even original figlet don't display right letters, maybe because of the font. But anyway:

original "ą"

 _   _ 
(_)_(_)
  /_\  
 / _ \ 
/_/ \_\

wrong but rendered right, but figlet-js show some data from the font:


0x010D  LATIN SMALL LETTER C WITH CARON
   \\//
   _\/ 
  / __|
 | (__ 

one empty line before 0x010D. The reason for this non standard letters look like this in the file:

196  LATIN CAPITAL LETTER A WITH DIAERESIS
  _   _ @
 (_)_(_)@
   /_\  @
  / _ \ @
 /_/ \_\@
        @@

Simple to grab the letter the code need to convert characters to number and find it in the file. Also larger numbers can be encoded in hex:

0x0143  LATIN CAPITAL LETTER N WITH ACUTE
  _/ /_ @
 | \ | |@
 |  \| |@
 | |\  |@
 |_| \_|@
        @@