本参考资料用于Processing 3.0+。 如果你使用的是前一版本，请在使用软件帮助菜单内的参考资料。. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Core Javadoc and Libraries Javadoc.
|描述|| PFont is the font class for Processing. To create a font to use with Processing, select “Create Font…” from the Tools menu. This will create a font in the format Processing requires and also adds it to the current sketch’s data directory. Processing displays fonts using the .vlw font format, which uses images for each letter, rather than defining them through vector data. The loadFont() function constructs a new font and textFont() makes a font active. The list() method creates a list of the fonts installed on the computer, which is useful information to use with the createFont() function for dynamically converting fonts into a format to use with Processing.
To create a new font dynamically, use the createFont() function. Do not use the syntax new PFont().
Updated on October 2, 2018 05:02:10pm EDT