textFont()

Typography / Loading & Displaying

Description

Sets the current font for text rendering.

Syntax

void textFont(const PFont& font) void textFont(const PFont& font, float size)

Parameters

NameTypeDescription
fontPFonta PFont object
sizefloatfont size (optional)

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...