Giter VIP home page Giter VIP logo

Comments (4)

sepandhaghighi avatar sepandhaghighi commented on June 8, 2024 1

@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.

sadrasabouri avatar sadrasabouri commented on June 8, 2024 1

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.

sepandhaghighi avatar sepandhaghighi commented on June 8, 2024 1

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.

aamir0002 avatar aamir0002 commented on June 8, 2024

سلام. چطور میتونم به شما پی ام بدم سوالی درباره یکی از کد هاتون داشتم

from art.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.