项目需要用到一些Processing特性,当然也需要用到中文字体
我采用的是外部加载字体的方式
<span style="font-size:18px;">PFont myFont;
void setup(){
size(700,200);
myFont=createFont("GirlW5.TTF",40);
textSize(40);
fill(255,0,0);
textFont(myFont);
text("API使用文档",100,100);
}</span>
字体是网上随意下载的字体,放置位置,以及演示效果