Are createFont and loadFont unusable in Processing iOS?

void setup() {
   size(screen.width, screen.height);
   textFont(createFont("Lato-Medium.ttf", 30));

void draw() { ... }

I wanted to use Lato font, ant I wrote this code,
but Processing iOS did not use the font to write text.

Does it have any wrong points?
Or Processing iOS cannot use the syntax?

There is a TrueType®︎OpenType®︎Font file named “Lato-Medium.ttf” in data file.

1 Like

i can not help about your used hardware and OS,
but if you just do this first time, better stay close to the examples.

PFont myFont;

void setup() {
  size(200, 100);
  myFont = createFont("Lato-Medium.ttf", 20);
  textAlign(CENTER, CENTER);

void draw() {
  background(200, 200, 0);
  text("TEST !@#$%", width/2, height/2);

with font file in /data sub dir.

works here on win 10 / 64b // processsing 3.5.3


I‘ve been using Processing IOS for over a year now and although it‘s the best option if you want to Code Visual stuff on your iPhone, some things don‘t works as they should (like PShape…).

As for wether createFont works, i doubt it…

Mainly because it seems like the IOS Version mainly accounts for practical methods / classes, since space is limited…

But also because i‘ve had some problems with the „new“ file system they added (~1/4year ago, iirc)…

Your best bet with the IOS version is probably to stick to technical things and do „fancy“ stuff on your computer.