Skip to content

Text looks blurry in GL Retina #2739

Description

@codeanticode
{ PJOGL.RETINA = true; } // for now

public void setup() {
//  size(640, 480, "processing.core.PGraphicsRetina2D");
//  size(640, 480, JAVA2D);
  size(640, 480, P2D);
//  smooth(4);
  textFont(createFont("Courier", 24));

  noStroke();
  fill(0);
}

public void draw() {
  background(180);

  for (int x = 0; x < width + 50; x += 50) {
    for (int y = 0; y < height - 50; y += 50) {
      ellipse(x, y, 40, 40);
    }    
  }

  text("Text doesn't look particularly crisp, though", 0, height - 20);
} 

A workaround is to create the text at double the size:

textFont(createFont("Courier", 48));
textSize(24);

Metadata

Metadata

Assignees

Labels

enhancementhighWe'd like to fix this as soon as possible

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions