Name

createFont()

Examples
size(100, 100)
# Uncomment the following two lines to see the available fonts 
#fontList = PFont.list()
#print(fontList)
myFont = createFont("Georgia", 16)
textFont(myFont)
textAlign(CENTER, CENTER)
text("!@#$%", width/2, height/2)
Description
Syntax
createFont(name, size)
createFont(name, size, smooth)
createFont(name, size, smooth, charset)
Parameters
name
size
smooth
charset
Related PFont
textFont()
PGraphics
loadFont()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License