Check out example codes for "processing load font from file". It will help you in understanding the concepts better.

Code Example 1

PFont font = createFont("PressStart2P.ttf", 32);
textFont(font);

Code Example 2

PFont font = loadFont("LetterGothicStd-32.vlw");
textFont(font, 32);

Learn ReactJs, React Native from akashmittal.com