Sets the current font that will be drawn with the Ptext function. Fonts must be created for Processing with PcreateFont before they can be used. The font set through PtextFont will be used in all subsequent calls to the Ptext function.

Link to original Processing doc

PtextFont is available since version 1.0.0.

See also



// @preview image 200 200 '2D2' PGraphics 255 Pbackground 0 Pfill 10 PtextSize 'CENTER' PtextAlign //insert a font here (this font must be present on Warp 10 server) 'FreeMono' 18 true PcreateFont PtextFont 'Is it a bird ?' 100 30 Ptext 22 PtextSize //changing size keep the font 'Is it a plane ?' 100 90 Ptext //will default to a standard "S" in the default font. 'Pauls SUPER Font' 70 true PcreateFont PtextFont 'S' 100 170 Ptext //unless... https://www.dafont.com/pauls-super-font.font?text=superman // (then refresh your Warp 10 server font-cache). Pencode