Skip to content

Instantly share code, notes, and snippets.

@sasaki-shigeo
Created January 6, 2019 08:04
Show Gist options
  • Save sasaki-shigeo/d76fb665e25fa167e3740dd4e5de3e91 to your computer and use it in GitHub Desktop.
Save sasaki-shigeo/d76fb665e25fa167e3740dd4e5de3e91 to your computer and use it in GitHub Desktop.
Display Processing Font Sample / フォントの表示
size(500, 300);
PFont serif = createFont("Serif", 43);
PFont sansserif = createFont("SansSerif", 43);
PFont monospaced = createFont("Monospaced", 43);
fill(#000000); noFill();
stroke(#ff0000);
textFont(serif); text("Serif", 50, 80);
textFont(sansserif); text("SansSerif", 50, 180);
textFont(monospaced); text("Uniformed Width", 50, 280);
printArray(PFont.list());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment