loadFont()

Typography / Loading & Displaying

Description

Loads a font from the sketch's data folder. Supports .ttf and .otf files.

Syntax

PFont loadFont(std::string filename)

Parameters

NameTypeDescription
filenamestd::stringname of the font file

Returns

PFont

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...