Skip to content

text rendering on off-screen p5.Renderer ignores textSize() and fill() #886

@JobLeonard

Description

@JobLeonard

Hope this isn't a duplicate, quick search didn't show this issue being reported before.

Minimal example:

var pg;
function setup() {
  createCanvas(100, 100);
  pg = createGraphics(100, 100);
}
function draw() {
  pg.background(100);
  pg.fill(200);
  pg.noStroke();
  pg.textSize(50);
  pg.textAlign(CENTER, CENTER);
  pg.text("Test", width/2, height/2);
  image(pg, 0, 0);
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions