Dynamically converts a font to the format used by Processing from a font that is installed on the computer. Not all fonts can be used and some might work with one operating system and not others.

The size parameter states the font size you want to generate. The smooth parameter specifies if the font should be antialiased or not.

Since the 2.5.0 version, the name of the font can be a URI to a OpenType or Type1 font which will be resolved by a macro defined by the processing.font.resolver configuration.

Link to original Processing doc

PcreateFont 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 // (refresh your Warp 10 server font-cache). Pencode