vladimirgamalyan / fontbm

BMFont compatible, cross-platform (Linux/macOS/Windows) command line bitmap font generator (FreeType2 based).
MIT License
241 stars 38 forks source link

Image text output #31

Open SollyBunny opened 8 months ago

SollyBunny commented 8 months ago

Can you add an option to output the image in a text format

Supplementary options could include

Thanks

vladimirgamalyan commented 7 months ago

Do u mean kind of ASCII art? Like:

          ___                
         (   )               
  .---.   | |.-.     .--.    
 / .-, \  | /   \   /    \   
(__) ; |  |  .-. | |  .-. ;  
  .'`  |  | |  | | |  |(___) 
 / .'| |  | |  | | |  |      
| /  | |  | |  | | |  | ___  
; |  ; |  | '  | | |  '(   ) 
' `-'  |  ' `-' ;  '  `-' |  
`.__.'_.   `.__.    `.__,'   
SollyBunny commented 7 months ago

Sorry, forgot to responsd. I meant a machine & human readable text based image format where filled pixels are a character and empty pixels are spaces

   ▄████████ ▀█████████▄   ▄████████      ████████▄     ▄████████    ▄████████
  ███    ███   ███    ███ ███    ███      ███   ▀███   ███    ███   ███    ███
  ███    ███   ███    ███ ███    █▀       ███    ███   ███    █▀    ███    █▀
  ███    ███  ▄███▄▄▄██▀  ███             ███    ███  ▄███▄▄▄      ▄███▄▄▄
▀███████████ ▀▀███▀▀▀██▄  ███             ███    ███ ▀▀███▀▀▀     ▀▀███▀▀▀
  ███    ███   ███    ██▄ ███    █▄       ███    ███   ███    █▄    ███
  ███    ███   ███    ███ ███    ███      ███   ▄███   ███    ███   ███
  ███    █▀  ▄█████████▀  ████████▀       ████████▀    ██████████   ███