Py5Font.list()#

Gets a list of the fonts installed on the system.

Examples#

1font_list = py5.Py5Font.list()
2print(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

Syntax#

list() -> list[str]

Updated on March 22, 2022 21:53:01pm UTC