Py5Font.list()

Py5Font.list()#

Gets a list of the fonts installed on the system.

Examples#

font_list = py5.Py5Font.list()
print(font_list)

Description#

Gets a list of the fonts installed on the system. The data is returned as a list of strings. This list provides the names of each font for input into create_font(), which allows py5 to dynamically format fonts.

This works outside of a running Sketch.

Underlying Processing method: PFont.list

Signatures#

list() -> list[str]

Updated on March 06, 2023 02:49:26am UTC