processing text rendering low quality

edited November 2015 in Programming Questions

Hi to everyone! I pretty new to Processing and I'm trying to write small app for touch-screen in museum. And I'm very sad about text rendering quality. This is how I make my text, I also tried to install font on my computer and use loadFont() function. The result is the same. The same result with english letters. Also I'm using Processing 3.0.1 and I have Retina display( if it is important).

void setup() {
  fullScreen();
  imgHerous[0]= loadImage("01_koufman.jpg");
  imgHerous[1]= loadImage("02_serov.jpg");
  imgHerous[2]= loadImage("03_verevkin2.jpg");

  dinHeader = createFont("DINPro-Regular.otf", 30.0, true);
  dinName = createFont("DINPro-Regular.otf", 20.0, true);
}
void draw() {
  background(255);
.....
fill(#986727);
  textFont(dinHeader);
  textAlign(LEFT, CENTER);
  text("Герои туркестанских походов", 15, 30);
......
}

Снимок экрана 2015-11-15 в 22.46.14

Answers

  • edited November 2015 Answer ✓

    Привет. What exactly do you mean by poor quality, cause font looks normal to me on the screenshot?

    For retina displays in processing 3 you may want to have a look at new pixelDensity() function to use all its power.

  • привет:) thanks a loooooot for your advice! it worked for me)

Sign In or Register to comment.