标签: figlet

如何获取 pyfiglet python3 中所有可用的字体

我正在使用一个名为pyfiglet 的库,我使用它安装了它,pip3 install pyfiglet我想知道是否有一种方法可以让我获得我可以使用的所有字体的列表,就像pyfiglet.figlet_format()我想获得一个列表list_of_fonts = []并在我想要的列表中一样获取我可以使用或安装的所有字体。

我正在使用 Debian Linux 和 Python 3.9

感谢您提前答复。

python linux list python-3.x figlet

4
推荐指数
1
解决办法
1万
查看次数

PyInstaller ImportError:没有名为“pyfiglet.fonts”的模块

我正在尝试使用 PyInstaller 编译 Asciimatics 的演示脚本之一,希望最终能够为我正在开发的基于文本的游戏创建一个简单的 GUI,它返回以下错误:

C:\Users\X\Documents\Python Scripts\asciimatics samples\dist\test>test.exe

Traceback (most recent call last):
  File "site-packages\setuptools-19.2-py3.4.egg\pkg_resources\__init__.py", line 443, in get_provider
KeyError: 'pyfiglet.fonts'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 22, in <module>
  File "site-packages\asciimatics\screen.py", line 859, in wrapper
  File "<string>", line 12, in demo
  File "site-packages\asciimatics\renderers.py", line 276, in __init__
  File "site-packages\pyfiglet\__init__.py", line 710, in __init__
  File "site-packages\pyfiglet\__init__.py", line 717, in setFont
  File "site-packages\pyfiglet\__init__.py", line 90, in __init__
  File "site-packages\pyfiglet\__init__.py", …
Run Code Online (Sandbox Code Playgroud)

pyinstaller ascii-art importerror python-3.x figlet

3
推荐指数
2
解决办法
2万
查看次数

我想连接两个 Figlet 输出(具有不同的颜色)

目前我有这种输出格式:

{ echo "$(figlet buddhi)"; echo "$(figlet lw)"; }
Run Code Online (Sandbox Code Playgroud)
 _               _     _ _     _
| |__  _   _  __| | __| | |__ (_)
| '_ \| | | |/ _` |/ _` | '_ \| |
| |_) | |_| | (_| | (_| | | | | |
|_.__/ \__,_|\__,_|\__,_|_| |_|_|

 _
| |_      __
| \ \ /\ / /
| |\ V  V /
|_| \_/\_/


Run Code Online (Sandbox Code Playgroud)

我想要这样的输出格式:

figlet buddhi lw
 _               _     _ _     _   _ …
Run Code Online (Sandbox Code Playgroud)

bash shell figlet

3
推荐指数
1
解决办法
1045
查看次数

标签 统计

figlet ×3

python-3.x ×2

ascii-art ×1

bash ×1

importerror ×1

linux ×1

list ×1

pyinstaller ×1

python ×1

shell ×1