Error message when using PFont

Remember you are in Python, so no such thing as variable declaration PFont headerFont!
See if this makes any sense:

def setup():
    size(1600, 900)
    global headerFont    # if you want to use the variable inside draw()
    headerFont = loadFont("BlackBubbleFont.vlw")
3 Likes