Python's pythonwordart library

Use Python3 to create WordArt similar to MS Office.
insert image description here
insert image description here
insert image description here

The actual WordArt generation is performed by a forked version of Arizzitano's CSS3 WordArt, a Python class that just generates the correct HTML code, renders it into a Qt widget, and saves it as a PNG image. Basically, HTML is rendered by a QWebEngineView that is not displayed on screen. The widget content is then stored as a PNG image and cropped to contain only the actual WordArt. You can also get a transparent background.

Install

pip install pythonWordArt

The simplest sample code

from pythonWordArt import pyWordArt
w = pyWordArt()
w

Guess you like

Origin blog.csdn.net/zhangzhechun/article/details/131358911