Typography, Font problem

Hello,
I have got some problem with my typography, first when i load my font (in police generator) , I can’t have mort than 50pt for the size and so when I want to write it bigger with textSize() the rendering is blurred, pixelated. Is it possible to do otherwise?
And I got another problem :confused:
I would like my text to be just visible by an outline using stroke(255); noFill(); but it doesn’t work at all ?!

(The goal of my project would be to have the same word (thank you) with just different typography each time.)

If by chance you will be able to solve my problems I will be very grateful to you, I’m just starting and I feel like I don’t understand anything at all

ArrayList<PFont> fonts = new ArrayList<PFont>();
int randomPosition = 0;

void setup() {

  size(displayWidth, displayHeight);
  background(0);
  stroke(255);
  noFill();
  fonts.add(loadFont("Futura-ExtraBold-48.vlw"));
  fonts.add(loadFont("Futura-Light-48.vlw"));
  fonts.add(loadFont("Futura-Bold-48.vlw"));
  fonts.add(loadFont("Futura-Book-48.vlw"));
  fonts.add(loadFont("Futura-CondensedExtraBold-50.vlw"));
  fonts.add(loadFont("Futura-Heavy-48.vlw"));
  fonts.add(loadFont("Futura-Medium-48.vlw"));
}

void draw() {
  background(0);
  stroke(255);
  noFill();
  textFont(fonts.get(randomPosition), 200);
  // textSize(300);

  text("merci", displayWidth/2, displayHeight/2, 0);
  textAlign(CENTER);
}

void mousePressed() {

  randomPosition = floor(random(0, fonts.size()));
}

Other than rect() or ellipse() command, text() doesn’t have fill and stroke distinction, it only has fill().

There is a library geomerative (http://www.generative-gestaltung.de/1/P_3_2_1_01) with font stuff but awfully complicate

It has good examples and is also mentioned here on the forum

Chrisir

1 Like

Ahh okay :frowning:
Thank you for the tip Chrisir :wink:

48 is the size of your font when you created the vlw file. If you want a bigger font, recreate vlw files with a bigger size, but it will make the file much bigger.

if you need to use multiple or dynamic font size, consider using createFont().

2 Likes