Comments (4)
@sadrasabouri You can start to work on this issue.
The first step is to find the fonts with this problem and list them.
from art.
First I write the below scripts to find out fonts which have problems with space
parameter:
>>> from art import *
>>> for font_name in FONT_NAMES:
... if text2art("test", font_name, space=2) == text2art("test", font_name):
... print(font_name)
...
block
danc4
nvscript
Then I checked them in text_dic*.py
files to find out the problem. It turned out that (' ' - spce) is mapped to ('' - empty string), as it can be seen in from the below script's results:
>>> from art.art_param import FONT_MAP
>>> for font_name, font in FONT_MAP.items():
... if font[0][' '] == '':
... print(font_name)
...
block
danc4
nvscript
So for solving this issue we can fill up the space character's mapping for these fonts {block
, danc4
, nvscript
}.
from art.
So for solving this issue we can fill up the space character's mapping for these fonts {
block
,danc4
,nvscript
}.
@sadrasabouri Nice approach 🔥
from art.
سلام. چطور میتونم به شما پی ام بدم سوالی درباره یکی از کد هاتون داشتم
from art.
Related Issues (20)
- megacooltext.com HOT 1
- Art
- console_scripts entry point
- text2art is not defined HOT 3
- capitalizemytitle HOT 1
- Design
- Is there an ANSI version of this awesome program? HOT 1
- Print art name in random mode
- Support `space` in `art` and `aprint` functions
- adding colors HOT 4
- Ambiguous variable name 'l'
- Add ANSI-FIGlet fonts
- Add AOL-Macro fonts
- Drop support for EOL Python
- Brb HOT 1
- font_size_splitter bug HOT 3
- Release instructions
- Python 3.12 support
- Making the Project Kid-Friendly? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from art.