Py5Font.list()

Gets a list of the fonts installed on the system.

Examples

1
2
font_list = py5.Py5Font.list()
py5.println(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 Java method: PFont.list

Syntax

list() -> List[str]

Updated on September 11, 2021 16:51:34pm UTC