項目需要用到一些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>
字體是網上隨意下載的字體,放置位置,以及演示效果