createFont()

Typography / Loading & Displaying

Description

Creates a PFont from a system font name and size.

Syntax

PFont* createFont(std::string name, float size, bool smooth)

Parameters

NameTypeDescription
namestd::stringfont name
sizefloatfont size
smoothboolwhether to anti-alias (default true)

Returns

PFont*

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...