Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional spaces between letters #10

Open
kosatnkn opened this issue Oct 11, 2019 · 6 comments
Open

Additional spaces between letters #10

kosatnkn opened this issue Oct 11, 2019 · 6 comments

Comments

@kosatnkn
Copy link

The generated ASCII art has additional spaces in between letters. This happens with many font types.

What I get

                                         __
   _____  ____ _   ____ ___     ____    / /  ___
  / ___/ / __ '/  / __ '__ \   / __ \  / /  / _ \
 (__  ) / /_/ /  / / / / / /  / /_/ / / /  /  __/
/____/  \__,_/  /_/ /_/ /_/  / .___/ /_/   \___/
                            /_/

What I want

                                   __
   _____ ____ _ ____ ___   ____   / /___
  / ___// __ '// __ '__ \ / __ \ / // _ \
 (__  )/ /_/ // / / / / // /_/ // //  __/
/____/ \__,_//_/ /_/ /_// .___//_/ \___/
                       /_/
@common-nighthawk
Copy link
Owner

Can you provide a few example fonts? Thanks!

@kosatnkn
Copy link
Author

Font: big

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

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

Font: block

_|      _|                      
_|_|  _|_|    _|_|      _|_|    
_|  _|  _|  _|    _|  _|    _|  
_|      _|  _|    _|  _|    _|  
_|      _|    _|_|      _|_|    


_|      _|
_|_|  _|_|     _|_|       _|_|
_|  _|  _|   _|    _|   _|    _|
_|      _|   _|    _|   _|    _|
_|      _|     _|_|       _|_|

Font: shadow

  \  |             
 |\/ |  _ \   _ \  
 |   | (   | (   | 
_|  _|\___/ \___/ 

   \  |
  |\/ |    _ \     _ \
  |   |   (   |   (   |
 _|  _|  \___/   \___/

There's a few more that I came across.

  • slant
  • smslant
  • small
  • smshadow
  • standard

Hope this'll help

@ondrej-fabry
Copy link

This is the only reason that prevents me from using this library, forcing me to use online ASCII text generators like http://www.network-science.de/ascii/

@metalworn
Copy link

Same issue. Use this online as comparsion: http://patorjk.com/software/taag/#p=display&f=Standard&t=GitHub

Or cli figlet:

> figlet GitHub
  ____ _ _   _   _       _
 / ___(_) |_| | | |_   _| |__
| |  _| | __| |_| | | | | '_ \
| |_| | | |_|  _  | |_| | |_) |
 \____|_|\__|_| |_|\__,_|_.__/

This lib:

     ____   _   _     _   _           _
    / ___| (_) | |_  | | | |  _   _  | |__
   | |  _  | | | __| | |_| | | | | | | '_ \
   | |_| | | | | |_  |  _  | | |_| | | |_) |
    \____| |_|  \__| |_| |_|  \__,_| |_.__/

@mwmahlberg
Copy link

If I am not mistaken, this line

https://github.com/common-nighthawk/go-figure/blob/734e95fb86be9194fff173d46130cf717d719dd1/figure.go#L60C60-L60C81

and more specifically, the figure.font.hardblank parameter is the cause.

@havardthom
Copy link

Also noticed this since I need ascii art in slant font, this is preventing me from using this package. Any plans on fixing this @common-nighthawk ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants