Saturday, June 15, 2013

Processing code sample: list available fonts

To list installed fonts in Processing, call the function PFont.list().

list installed fonts in Processing
list installed fonts in Processing


void setup() {
  size(400, 300);
  background(255);

  String[] fontList = PFont.list();
  println(fontList);
}

void draw() {
}

No comments:

Post a Comment